Forum Discussion
MIN MAX
- 5 years ago
dedelman_clng varshahrame If you really don't want to unpivot your data, you can create a measure to find the the Max Value, which I think you have done, then create a measure per column that will check to see if it's the Max Value and then use that to conditionally format the background or however you want to format it.
I've attached the PBIX as well. Hope this helps.
varshahrame - unfortunately, conditional formatting like you are going for operates on a column, not on a row, at least to my knowledge. If you were to "transpose" the table to be a list of attributes and values, then it may be possible, but Pivot/Transpose is not available in DAX (again, to my knowledge).
I'll see if I can bring others into this thread that may have ideas.
David
dedelman_clng varshahrame If you really don't want to unpivot your data, you can create a measure to find the the Max Value, which I think you have done, then create a measure per column that will check to see if it's the Max Value and then use that to conditionally format the background or however you want to format it.
I've attached the PBIX as well. Hope this helps.
- varshahrame5 years agoFrequent Visitor
Thank you so much DataZoe! This worked perfectly. The only issue is having to do this for ALL other columns! haha....but it works, so I am happy about that.
APPRECIATE EVERYONES HELP!
- varshahrame5 years agoFrequent Visitor
DataZoe Are you able to do a MIN and MAX on the same conditional formatting? I added in my minimum measures and I looked at the conditional formatting and I dont see where you can add the minimum as well as the maximum?
- DataZoe5 years ago
Microsoft Employee
varshahrame Of course, I've attached the PBIX and modified it like so:
Is Max Value Num 1 =VAR thisone =SUM ( 'Table'[Num1] )RETURNIF (thisone = [Max Value],"Red",IF ( thisone = [Min Value], "Green", BLANK () ))