Forum Discussion
Conditional formatting of cell values in Matrix visual
- 6 years ago
Hi vsteinbahs ,
You can create the following measure:
Measure =
var A = CALCULATE(SUM('Table'[Sales]))
var B = CALCULATE(SUM('Table'[Sales]),DATEADD('Table'[Date],-1,DAY))
return
IF(A > B,"#FFFF00",BLANK())
Then in Matrix Format, choose conditional format:
,
enable Background color and select ‘Advanced controls’:
choose Format by Field value and select previous measure under Based on filed
Here is the demo , please try it:
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi v-yingjl ,
Thank you very much for your reply and examples. I applied your suggested technique to my project, but the cell values in the row still didn't get highlighted as I was hoping. Per attached screenshot, you can see that the value of "72,210" on Feb 13th for table "adrmst" is higher then the previous value for the same record on Feb 12th. As a brief background on this project, I'm taking a daily snapshots of the database table row count, and want to hightlight the ones where the value is changing and is higher than on the previous day. I can send you my pbix file, if you don't mind to take a look at it.
Row cell value changes per date
Hello @v-yingjl ,
I figured out where the problem was and your suggested technigue of using a "measure" is working perfectly now. Once again, thank you for your help and solution! I learned quite a bit through this exercise 😀 👍
Here is a screenshot from Matrix visual with conditional formatting of cell values.