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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
NickProp28
Post Partisan
Post Partisan

Conditional formatting matrix

Dear Community, 

 

I have 2 table, 'Client_table' and 'Allocation_weekly'.

Details for client table:

'week' is the new column with DAX 

week = WEEKNUM(Client_table[Date],2)

NickProp28_0-1633512378759.png

For Allocation weekly table, is just show the client rank and their weekly allocation TEU.

NickProp28_1-1633512441943.png

I have link a relationship between this two table and created a matrix table on it. But I quite frustrate because I cant set the background color based on the weekly allocation. But this can be easily did in it excel.

Like when week 3 of client adidas had surpass the allocation target, it will show in green. If not, will show in yellow. 

NickProp28_2-1633512556697.png

I had tried the conditional formatting and based on the field weekly allocation. 

NickProp28_3-1633513177176.png

But its require to set the min and max, and for my case, different client have different target. 

NickProp28_4-1633513291166.png

 

Thank for your attention. 

And here's the pbix: https://drive.google.com/drive/folders/141b2JyAoFjFR3tGU9kQsyunZMl5yeHk9?usp=sharing

 

1 ACCEPTED SOLUTION
vivran22
Community Champion
Community Champion

Hello @NickProp28 ,

 

You need to write a measure for defining the color code. A sample example is below:

 

vivran22_1-1633515258991.png

 

You can use hex codes as well.

 

 

And use it in the conditional formatting:

vivran22_2-1633515325456.png

 

Result:

vivran22_0-1633515240697.png

Link file

 

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

 

 

 

View solution in original post

2 REPLIES 2
vivran22
Community Champion
Community Champion

Hello @NickProp28 ,

 

You need to write a measure for defining the color code. A sample example is below:

 

vivran22_1-1633515258991.png

 

You can use hex codes as well.

 

 

And use it in the conditional formatting:

vivran22_2-1633515325456.png

 

Result:

vivran22_0-1633515240697.png

Link file

 

 

Cheers!
Vivek

Blog: vivran.in/my-blog
Connect on LinkedIn
Follow on Twitter

 

 

 

 

Dear @vivran22 ,

 

Thank you so much!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.