Hi @niketn - please see below sample search. index=idx source="idx_src" sourcetype="idx_srctype"
| rename COMMENT as "sorting data in descending order and removing duplicates by keeping the latest record for each incident id"
| sort -lastUpdate
| dedup ID
| where Status="Closed"
| fields TeamName ID InsideSLA
| rename COMMENT as "data feed is having a flag InsideSLA, 1=Incident closed within SLA, 0=Incident closed outside SLA"
| eval inSLACount=if(InsideSLA="1",1,0)
| rename COMMENT as "Target SLA are different for different teams"
| eval targetSLA=if((TeamName="Team1" OR TeamName="Team2"),95,90)
| stats sum(inSLACount) as InsideSLA, count(ID) as totalCount, values(targetSLA) as targetSLA by TeamName
| eval currentSLA=round(InsideSLA/(totalCount)*100,2)
| table TeamName, currentSLA, targetSLA
| rename COMMENT as "renaming columns to the default column names used by this viz"
| rename TeamName as value, currentSLA as title, targetSLA as subtitle
| eval subtitle=subtitle."%"
| table value, title, subtitle
| sort value . Thank you.
... View more