Forum Discussion

bblackwell3's avatar
bblackwell3
Helper II
2 years ago
Solved

Conditionally Format Max Row Values and compare

Hey All. I have two tables, like below 1.  2.    I am trying to conditionally color the values, if( the Items = Admin and Budgeted in Table 1) matches the (Item = Admin and baseline...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi bblackwell3 

    Adjust the measure "match or not":

    Match or not = IF(LOOKUPVALUE('Table2'[Budgeted],'Table2'[Budgeted],SELECTEDVALUE('Table1'[Budgeted])),"match","not match")



    color = 
    VAR _max = CALCULATE(MAX('Table1'[Budgeted]),FILTER(ALL('Table1'),[Match or not] = "match"))
    
    RETURN
    SWITCH(TRUE(),SELECTEDVALUE('Table1'[Budgeted])=_max,"green")

     

     

    Result:

     

     

    Pbix file attached.

     

     

     

     

     

     

    Best Regards,

    Jayleny

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.