try this
| stats count
| eval filetype="Billing,SalesOrder,Clearing,Delivery,ReturnOrder,M39COGSSIT,M39AcutualRevenueRec"
| makemv delim="," filetype
| mvexpand filetype
| append
[ index=sap_bam sourcetype=sap_d059 earliest=-6h filetype=Billing OR filetype=SalesOrder OR filetype=Clearing OR filetype=Delivery OR filetype=ReturnOrder OR filetype=M39COGSSIT OR filetype=M39AcutualRevenueRec
| dedup source]
| stats sum(eval(if(isnull(_time),0,1))) as filecount by filetype
| eval alertme=if(filecount=0,1,0)
| table filetype filecount alertme
... View more