Forum

Notifications
Clear all

Power BI - Matrix Cell Value (Date) Highlight when date is in the past

3 Posts
2 Users
0 Reactions
133 Views
(@stuart-hardakerviberoptix-com)
Posts: 1
New Member
Topic starter
 

I have a power BI dashboard for training records, i have a matrix (not table) which contains names, certification name and expiry dates.

Where a cell in the matrix contains a date which is in the past (expired certification date) i would like this cell to have a red background.

Attached is a snip of the matrix and also my raw data excel1.png

 
Posted : 18/05/2022 7:41 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Stuart,

Can you supply your PBIX file?

regards

Phil

 
Posted : 18/05/2022 7:26 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Stuart,

You can write a measure like this

CF Expired Cert = IF(MIN('Data'[Expiry Date]) < TODAY(), "RGB(240,0,0)")
 
Then set the Background CF rule to use that Field value (measure)
 
bg cf 1
 
bg cf 22
 
Download my sample PBIX file
 
 
 
Regards
 
Phil
 
 
Posted : 18/05/2022 8:18 pm
Share: