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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mundy727
Frequent Visitor

Conditional Formatting in Matrix Visual - Custom Thresholds for Heat Mapping

Hi, im realtively new to the forums here so apologies if i dont have this posted in the correct location!

 

I am looking to build out a head map for something similar to the table below. Im attempting to build out a recruiter capacity model. Id like to have the individual names shown here have seperate thresholds for conditional formatting (i.e. Name 1's overall capacity = 15 so id like to show the total and columns shown here be highlighted in green (not near the capacity), amber (getting closer to capacity), and then red (at or over capacity #). The heat mapping/conditional formatting would be different by name, as each individual has their own capacity. The counts shown in the example below are counts of how many roles the recruiter currently has aligned to them.

 

Curious if there is a way i can achieve this goal - to have seperate count thresholds for individuals (name 1, name 2, name 3) and have conditional formatting based off of these count thresholds if that makes sense?

 

Happy to try and explain further if any questions here. Appreciate any guidance, thank you!

 

mundy727_0-1723131284471.png

 

1 ACCEPTED SOLUTION

@mundy727 

Create these two measures and make the CF as the field value for conditional formatting.

Count# = COUNT('Table'[Status])

CF =

Var Row_ = CALCULATE(min(Capacity[Capacity]),Capacity[Name]=SELECTEDVALUE('Table'[Name]))

RETURN SWITCH(TRUE(),[Count#]>Row_,"Red",[Count#]<Row_,"Green",[Count#]=Row_,"Yellow")

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!


View solution in original post

7 REPLIES 7
NaveenGandhi
Super User
Super User

@mundy727 

Thanks for the data and screenshot. Below PBIX has a solution for this, Basically all you have to do is have a capacity table to store the capacity for each recuirter. Then create measure count# and CF. 

use the CF in the conditional formatting using field values. Feel free to tweak the CF formula and color codings.

NaveenGandhi_0-1723140974620.png

 

NaveenGandhi_1-1723140984125.png

 

 


Let me know if you have any questions.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!


Thanks @NaveenGandhi  this is helpful! What does the CF field represented in the above screenshot 'field we should base this on'?

 

Assuming id need to build that capacity table out and then build a relationship between this table and the data source of the table with the recruiter name and the Early, advanced, offer data correct?

 

Appreciate your guidance here thank you!

Anonymous
Not applicable

Hi @mundy727 ,

 

CF is the rule of color display and it needs to be built into your capacity. As per your original screenshot, you need to use CF for the "Value" in Early,Advanced, At offer. That's the field you let into the matrix to create conditional formatting for "Value", and this rule is CF.

vtianyichmsft_0-1723182592405.png

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

@Anonymous thank you!

 

I've built the capacity table to show the capacity of the recruiter as follows below. In effort to simplify i thought to just have the total capacity # in this table.  When i attempt to bring this field into the conditional formatting prompt 'what field should we base this on' i recieve a red box when selecting the total field from this table as shown below. Maybe i am missing a step here? Thank you again for all of your support!

image002.png

image001.png

@mundy727 

Create these two measures and make the CF as the field value for conditional formatting.

Count# = COUNT('Table'[Status])

CF =

Var Row_ = CALCULATE(min(Capacity[Capacity]),Capacity[Name]=SELECTEDVALUE('Table'[Name]))

RETURN SWITCH(TRUE(),[Count#]>Row_,"Red",[Count#]<Row_,"Green",[Count#]=Row_,"Yellow")

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!


mundy727
Frequent Visitor

Hi @NaveenGandhi sure thing. Sorry, i am unsure how to attach an excel file here - but here is an example below

 

Dataset exampleDataset exampleConditional formattingConditional formatting

NaveenGandhi
Super User
Super User

Hi @mundy727 

Can you share sample file(as the data model will be important to come up with a solution) and also providea screenshot of expected output to understand this better.

Regards,
NG

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors
Top Kudoed Authors