Forum Discussion

vijayvizzu's avatar
vijayvizzu
Helper III
4 years ago
Solved

Conditional formatting for individual columns

Hi, 

I want to apply colour scale conditional formatting in each individual columns to identify LOW and MAX values. Now when i tried Conditional formatting its considering all columns instead single column, please guide me to achieve this 

 

 

  • 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.

3 Replies

  • 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 glad to hear. Cheers!!

     

    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!