Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Conditional formating based on cell another cell in a different table

Hi, I have 2 tables as shown below. The left table is Actual and the right one is Target. I need to compare each value in the left table with its counterpart in the right table and if it's smaller n...
  • MFelix's avatar
    MFelix
    7 years ago
    Hi Anonymous,

    The conditional formatting only works with numbers, so the easist way to make it work is to considerer the result a 0 or a 1, easy to remember when settibg up condittional formatting.

    You could also make it trough a difference and on conditional for matting everything lower than 0 would be marked.

    Regards,
    MFelix
  • TeigeGao's avatar
    TeigeGao
    7 years ago

    Hi Anonymous ,

    Actually, if you want to count them rather than sum them, you can edit the measure to:

    Actuals total = COUNT(Actuals[Value])

    Target Total = COUNT(Targets[Value])

    Condittional formatting = IF(Actuals[Actuals total]<Targets[Target Total];1;0)

    Best Regards,

    Teige