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
rahulrackup
Microsoft Employee
Microsoft Employee

Color code instead of color name

Hi Everyone,

 

I have data wich talks about product categories by color code, and my requirement is to show sales amount by color code (see pic 2) instead of color name in table/Matrix format. Below snip of what i have in place and second picture talks about my requirement. Any help would appreciated.

 

Snip 1.

rahulrackup_0-1652799265421.png

My Requirement Snip 2.

 

rahulrackup_1-1652799333960.png

 

 

 

1 ACCEPTED SOLUTION
rocky09
Solution Sage
Solution Sage

Try this one.

Category = 
        SWITCH(TRUE(),
       cc[Product Categories] = "Green", UNICHAR(128994),
       cc[Product Categories] = "Red", UNICHAR ( 128308 ),
       cc[Product Categories] = "Amber",UNICHAR ( 128993 )
        )

View solution in original post

2 REPLIES 2
rahulrackup
Microsoft Employee
Microsoft Employee

Thanks a ton it worked!

rocky09
Solution Sage
Solution Sage

Try this one.

Category = 
        SWITCH(TRUE(),
       cc[Product Categories] = "Green", UNICHAR(128994),
       cc[Product Categories] = "Red", UNICHAR ( 128308 ),
       cc[Product Categories] = "Amber",UNICHAR ( 128993 )
        )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.