Forum Discussion
XeperRx
6 years agoFrequent Visitor
Custom Card with Color Coding - Customer Payment Rating
Hello All, I'm really starting to feel comfortable with all of the basic functionallity of PBI, but have just started getting my feet wet with DAX, any help would be greatly appreciated. I ...
- 6 years ago
Maybe:
Measure = VAR __Count = COUNTROWS(FILTER('Table',[Payment Status] = "Late")) RETURN SWITCH(TRUE(), __Count < 1,"Excellent/Green", __Count > 5,"Poor/Red", "Fair/Yellow" )
Greg_Deckler
6 years agoCommunity Champion
Maybe:
Measure =
VAR __Count = COUNTROWS(FILTER('Table',[Payment Status] = "Late"))
RETURN
SWITCH(TRUE(),
__Count < 1,"Excellent/Green",
__Count > 5,"Poor/Red",
"Fair/Yellow"
)