how to compare last month firstday data with current month firstday data and give the results if there is a change in particular field without using join? I am using the timerangepicker to select the date range in the dashboard. I am considering the earliest date as last month first day and latesttime as current month first day
index="test_si" search_name=menu environment=$env$
| eval latest="$latest$"
| eval enddate=if(latest=="now","@d",latest)
| eval epochdayend=if(isnum(enddate), enddate, relative_time(now(), enddate))
| eval ldayend= strftime(epochdayend,"%Y%m%d")
| lookup HolidayList Date as ldayend OUTPUT PreviousWDay as epochday
| eval epochdayend=if(isnull(epochday),ldayend,epochday)
| eval dateepoch=strftime(_time,"%Y%m%d") | where dateepoch=epochdayend | eval DATE=DATE_TIME
| eval conc = coalesce(Menu_Id,"").coalesce(APPLICATION,"").coalesce(CO_CODE,"")
| table Menu_Id DESCRIPTION APPLICATION CO_CODE DATE conc | dedup Menu_Id APPLICATION
| join type=outer conc [ search index="test_si" search_name=menu environment=$env$
| eval begindate="$earliest$"
| eval epochdaystart=if(isnum(begindate), begindate, relative_time(now(), begindate))
| eval ldaystart= strftime(epochdaystart,"%Y%m%d")
| lookup HolidayList Date as ldaystart OUTPUT NextWDay as epochday
| eval epochdaystart=if(isnull(epochday),ldaystart,epochday)
| eval dateepoch=strftime(_time,"%Y%m%d") | where dateepoch=epochdaystart | eval DATE=DATE_TIME
| eval conc = coalesce(Menu_Id,"").coalesce(APPLICATION,"").coalesce(CO_CODE,"")
| eval conc1 = conc | table Menu_Id DESCRIPTION APPLICATION CO_CODE DATE conc conc1 | dedup Menu_Id APPLICATION]
| where NOT conc = conc1 | sort 0 Menu_Id
| fieldformat DATE=strftime(strptime(DATE,"%y%m%d%H%M"),"%d-%b-%Y")
| fields - conc conc1 begindate dateepoch epochdaystart epochdayend enddate latest epochday ldayend ldaystart
... View more