Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

changing background color with condition

Hello,

i am working on a table for some time now and i can't figure how to do it if its possible i am quite new to power bi so i don't even know if its possible.

Here is my problem i want to change the color of certain rows between green and red depending on the fact that the value for sap_full_release is the same for the other rows of the tripplet 

as you can see for each sap_component there is three rows and i want to compare the value of sap release for each row if one of the sap release is different i want the three rows background to be red and if not i want it to be green.

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

     

    A DAX measure needs to be created to determine if the SAP release of each component is consistent across all environments. Returns false if consistent and true if inconsistent.

    ReleaseDiffernce = IF(CALCULATE(DISTINCTCOUNT('sap'[sap_full_release]), ALLEXCEPT('sap', 'sap'[sap_component])) > 1, "true", "false")

     

    Set the format of the condition based on the different values of ReleaseDiffernce.

     

     

    The page result is shown below:

     

    If you have any other questions please feel free to contact me.

     

    The pbix file is attached.

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

3 Replies