Forum Discussion

atul9063's avatar
atul9063
Helper III
7 years ago
Solved

Conditional formatting based on dropdown change

Hi, In below requirement, If select India>5M then India column value should highlight red  If select USA>1M then USA column value should highlight red                                         ...
  • atul9063's avatar
    atul9063
    7 years ago

    v-lili6-msftI have solved this problem.

     

     

    1) I have created dimsion table Country, with India>5M and USA>1M as values

     

    2) I have created two measures

    measure1=VAR HAPP1 = VALUES(Table1[India]) RETURN IF ( ABS(HAPP1 ) > 5000000 ,1)

     measure2=VAR HAPP2 = VALUES(Table1[Americ]) RETURN IF ( ABS(HAPP2 ) > 1000000 ,2)

     

    3) Then i have created third measures which will call above two measures

    measures3=

    VAR selection  =
    [CheckSelected]
    RETURN
    SWITCH (
    TRUE (),
    MySelection = "India>5M",[measure1] ,
    MySelection = "USA > 1M", [measure2],
    BLANK())

     

    4) Go to conditional formatting,select measure3 in rules and select value 1 and 2 for red .