Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Conditional formatting based on other column

I have a utilization table and I have to conditionally format each value based on the following matrix

Title Target Utlization
Principal 50%
Director50%
Manager50%
Consultant88%
Senior Consultant88%

And my table looks like this;

TitleUtilization %
Consultant82.47%
Consultant82.10%
Director20.74%
Director19.31%
Manager32.86%
Manager28.05%
Principal61.64%
Principal29.62%
Senior Consultant38.65%
Senior Consultant37.50%

 

Please help 

  • i agree more info is needed so i will make a few assumptions.

    the two tables are linked by title and the title in the target table is unique.

     

    creat a check to see if the utilization achieves the target,

    Target Check =
    VAR Target = LOOKUPVALUE('Tab A'[Target Utlization],'Tab A'[Title ],CALCULATE(MINX('Tab B','Tab B'[Title])))
    VAR Base = SUMX('Tab B',[Utilization %])
    return (Base - Target)
    if his is negative you didntmake target if positive you made it
     
    now create a conditional format rule on the table you wish to check, based on the Target check.
     
    model
     
    result

2 Replies

  • i agree more info is needed so i will make a few assumptions.

    the two tables are linked by title and the title in the target table is unique.

     

    creat a check to see if the utilization achieves the target,

    Target Check =
    VAR Target = LOOKUPVALUE('Tab A'[Target Utlization],'Tab A'[Title ],CALCULATE(MINX('Tab B','Tab B'[Title])))
    VAR Base = SUMX('Tab B',[Utilization %])
    return (Base - Target)
    if his is negative you didntmake target if positive you made it
     
    now create a conditional format rule on the table you wish to check, based on the Target check.
     
    model
     
    result
  • Hey Anonymous ,

    please provide more information what you exactly want to happen, and how the values from your table should be formatted based on what condition.

    There are three states, less than, equal to, or greater than.

     

    Another question, is there an existing relationship between both tables in your data model?

     

    Regards,

    Tom