@farhad Can you please try this? YOUR_SEARCH
| stats values(week) as weeks by EventID
| eval status = case(mvcount(weeks)==2,"Available In Both",weeks="This week","Available In This Week",weeks="Previous Week","Available In Previous Week")
| stats values(EventID) as EventIDs by status My Sample Search : | makeresults
| eval _raw="week EventID
This week 4624,4625,4627,4634,4647,4648,4656,4658,4661,4663,4664,4670,4672,4673,4674,4688,4689,4690,4692,4693,4698,100,102,103
Previous Week 4624,4625,4627,4634,4647,4648,4656,4658,4661,4663,4664,4670,4672,4673,4674,4688,4689,4690,4692,4693,4698,4702,4720,4722,4724,4725
"
| multikv forceheader=1
| eval EventID=split(EventID,",")
| mvexpand EventID
| table week EventID
| rename comment as "Upto now is for sample data only"
| stats values(week) as weeks by EventID
| eval status = case(mvcount(weeks)==2,"Available In Both",weeks="This week","Available In This Week",weeks="Previous Week","Available In Previous Week")
| stats values(EventID) as EventIDs by status I hope this will help you. Thanks KV If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.
... View more