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
Anonymous
Not applicable

color measure by field value matrix

Hi there, 

 

I'm trying to update my measure so the "university connection" values only show red for greater than 2, "street team" greater than 8, and "social media" greater than 12, etc.

 

quayg_0-1658767963004.png

 

 

Screen Shot 2022-07-25 at 11.42.27 AM.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try A meausre like

 

Switch( True() ,

max(Table[Type)=  "university connection" && [Primary Zeros]> 2, "Red",

max(Table[Type)=  "street team" && [Primary Zeros]> 8, "Red",

max(Table[Type)=  "Social Media" && [Primary Zeros]> 12, "Red",

"White"

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try A meausre like

 

Switch( True() ,

max(Table[Type)=  "university connection" && [Primary Zeros]> 2, "Red",

max(Table[Type)=  "street team" && [Primary Zeros]> 8, "Red",

max(Table[Type)=  "Social Media" && [Primary Zeros]> 12, "Red",

"White"

)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Ahhh! Thank you so very much!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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