Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Bar Chart colour based on Table

Hi,   I have a Table showing what versions of software are approved and a Bar Chart showingwhat is actually installed on the user's device. I would like to change the colour of this bar to get it t...
  • Anonymous's avatar
    Anonymous
    5 years ago

    HI Anonymous,

    Maybe you can try to use the following measure formula on data color formatting to highlight the records that existed in your Approved Software Versions tables:

    Measure =
    VAR selected =
        ALLSELECTED ( 'Approved Software Versions'[iOS] )
    VAR currVersion =
        SELECTEDVALUE ( 'Purchased App Versions'[iOS Version] )
    RETURN
        IF ( currVersion IN selected, "Red", "Blue" )
    

    Regards,

    Xiaoxin Sheng