Forum Discussion
Conditional Format Based on Two Columns
- 3 years ago
Hello,
I am not sure if it will work for you, but it worked for my scenario.
Please create a new measure and label it.
Test=VAR chk(Sum(Table ID[JobID%]
Var chk2(Sum(TableID[AchievedCalculater%]
Return IF(Chk=Chk2,"#aaaaa","#bbbbb")
After you enter the measure, go to the conditional formatting for the row you want, select field value, values only, and the measure you created. Select ok, and your table should refresh. Please let me know if it helps.
Thanks for your response.
I am confused on how to create a measure reffering to two columns in order to conditional format different values in the same row.
Sample dataset:
| Date | Job ID | % Achieved | Calculated % Achieved |
| 01/01/2022 | 1 | 10 | 10 |
| 02/01/2022 | 2 | 20 | 20 |
| 03/01/2022 | 3 | 30 | 30 |
| 04/01/2022 | 4 | 40 | 40 |
| 05/01/2022 | 5 | 50 | 20 |
Bold text shown above will need to be highlighted as it shows two different values in the same row.
Hope this helps.
Hello,
I am not sure if it will work for you, but it worked for my scenario.
Please create a new measure and label it.
Test=VAR chk(Sum(Table ID[JobID%]
Var chk2(Sum(TableID[AchievedCalculater%]
Return IF(Chk=Chk2,"#aaaaa","#bbbbb")
After you enter the measure, go to the conditional formatting for the row you want, select field value, values only, and the measure you created. Select ok, and your table should refresh. Please let me know if it helps.