Forum Discussion
NKotak_Leecare
Helper III
3 years agoMeasure for conditional formatting a card which displays count of incidents
Hi all, I am looking to create a measure that I can use in conditional formatting of the accent bar to change color based on the incident value of the current month and the previous month. It sho...
Idrissshatila
Super User
3 years agoHello NKotak_Leecare ,
you could use the following measure:
formatting =
SWITCH (
TRUE (),
[IncidentSavesInSelectedInterval] > [lastMonth], "#FF0000",
[IncidentSavesInSelectedInterval] < [lastMonth], "#008000"
)
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
NKotak_Leecare
Helper III
3 years agoThanks!
how are you getting [lastMonth]?
- mlsx43 years ago
Memorable Member
You can do:
last Month= CALCULATE([IncidentSavesInSelectedInterval],PARALLELPERIOD([Date],-1,MONTH))- NKotak_Leecare3 years ago
Helper III
Hi mlsx4
Thank you! I tried using that measure but it is returning Red regardless of the count values. Do you have any idea why it is doing that and how can I resolve it?
- mlsx43 years ago
Memorable Member