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

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

Reply
bigmac025
Frequent Visitor

Format Cells in Matrix Using Different Conditions and Table Showing Available Date

Hello,

I'm trying to format cell backgrounds in a Matrix based on the name in the first column and the value in the cell.

 

bigmac025_0-1752282353766.png

For example, if the value for the agent in the first row is over 2, I would like to highlight it to red in that date column.  If the value for the agent in the fourth row is over 5, I would like to highlight it to red in that date column.  Each agent has a different threshold that I want the cell to be highlighted if it is over a certain amount in each date column.

 

I also want to highlight the Total cell for the date if it is over 15.

 

Is this possible?  I can easily setup conditional formatting but the threshold has to be the same value.  In this report each agent has a different threshold value.

 

Second question, I would like to create a table visual that shows when the agent's value in a cell is below the threshold.

bigmac025_2-1752282985587.png

 

For example, if you look at the agent on the second row, I would want to display in a table that the value under 8/6/2025 is under his threshold of 2.  This would exclude weekends.

AgentNext Available Date for Work
28/6/25

 

Any help would be appreciated for both questions.

 

Thank you for your help in advanced.

Tim

1 ACCEPTED SOLUTION

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1752901059839.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

8 REPLIES 8
danextian
Super User
Super User

Hi @bigmac025 

 

Ensure that in your data,  there is threshold column for each agent. Create this measure

Highlight =
VAR _threshold =
    SELECTEDVALUE ( 'table'[agent threshold] )
RETURN
    IF ( [measure] > threshold, "red" )

In conditional formatting dialogue, selected field value among the options and select the measure above.

You can use hexadecimal, RGB or RGBA values instead of the word red for greater flexibility. 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBi file.  Also, share a 2 column table with the threshold of each agent.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Here is the link to download file Information Technology Analytics.pbix

That takes me to a sign-in page.  Also, share a 2 column table with the threshold of each agent.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello,

 

Please try this link for download: https://www.dropbox.com/scl/fi/1xb51uftifv7d6gak0pgn/Information-Technology-Analytics.pbix?rlkey=pkr...

 

The threshold for each agent is in a 2 column table on the page (bottom left).

 

Thanks,

Tim

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1752901059839.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you Ashish!  This is perfect!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Kudoed Authors