Forum Discussion
Conditional formatting for individual columns
- 4 years ago
vijayvizzu add a measure for color and then use that for conditional formatting using field value:
--assuming this is the measure you are using on values Sum Value Measure = SUM ( Table[Value] ) Color Min and Max = VAR __sum = [Sum Value Measure] VAR __min = MINX ( ALLSELECTED ( YourTable[Supplier] ), [Sum Value Measure] ) VAR __max = MAXX ( ALLSELECTED ( YourTable[Supplier] ), [Sum Value Measure] ) RETURN SWITCH ( TRUE() __sum = __min, "Red", __sum = __max, "Green" )✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
vijayvizzu add a measure for color and then use that for conditional formatting using field value:
--assuming this is the measure you are using on values
Sum Value Measure = SUM ( Table[Value] )
Color Min and Max =
VAR __sum = [Sum Value Measure]
VAR __min = MINX ( ALLSELECTED ( YourTable[Supplier] ), [Sum Value Measure] )
VAR __max = MAXX ( ALLSELECTED ( YourTable[Supplier] ), [Sum Value Measure] )
RETURN
SWITCH ( TRUE()
__sum = __min, "Red",
__sum = __max, "Green"
)
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Thank you very much for your support parry2k