KPI comparison based on Flag

Hi Shaun,

Need your help, I am looking for the options with KPI visual.
How can I aggregate data based on flag and do KPI to show the differences between two different flag values?
I tried SUM IF function to use the flag condition between measure and **compare to fields but it returns the same value. Not sure what is going wrong here. Please advise…