Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
chiran
New Member

Matrix table with colour rules

Hello Team,

 

I need to create a matrix table where it indicates the latest files received and if it has been transfered successfully in the database.

 

Here is my raw data:

 

SiteDateWorksheetStatus
ABC26/01/2024rdeptCompleted
CDE25/01/2024gpmCompleted
ACB26/01/2024rdeptError

 

I need to create a measure that indicates in red that we didn't receive the latest gpm file for site CDE and that the latest file of ACB has errors. If the the latest file is today and the status is completed, the cell should be highlighted in Green in my matric table.

 

Any idea how i can do this?

 

Many Thanks and Kind Regards,

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@chiran 

Create this measure:

CF Color = 
VAR __CurrentDate = TODAY()
VAR __Date = SELECTEDVALUE( Table41[Date] )
VAR __Status = SELECTEDVALUE(Table41[Status])
VAR __Result = IF( __Date < __CurrentDate || __Status = "Error" , "red" , "green" )
RETURN
    __Result

Select Status from the series drop down and click on fx

Fowmy_0-1706268986427.png

Assign the mesure as Field Value

Fowmy_1-1706269031688.png

 




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @chiran ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Fowmy
Super User
Super User

@chiran 

Create this measure:

CF Color = 
VAR __CurrentDate = TODAY()
VAR __Date = SELECTEDVALUE( Table41[Date] )
VAR __Status = SELECTEDVALUE(Table41[Status])
VAR __Result = IF( __Date < __CurrentDate || __Status = "Error" , "red" , "green" )
RETURN
    __Result

Select Status from the series drop down and click on fx

Fowmy_0-1706268986427.png

Assign the mesure as Field Value

Fowmy_1-1706269031688.png

 




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.