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
elads
Helper III
Helper III

Row header in different color

Hi,

 

I have three products, for each product I want to give color (Matrix Table)
For example: Product A = Green B=Red C=yellow . 

Is it possible to display the colors of a product in Row Header  (not in values)? 

 

Thanks for the helpers.

 

BR,

Alon

 

1 ACCEPTED SOLUTION

@elads this you can easily achieve by writing a simple measure for color then use background under condtional formatting or store color in a table and get it from there

 

here is example measure for color to use in background

 

Color = 
SWITCH ( 
    MAX ( 'Table (2)'[Slicer] ),
    "A", "Blue",
    "B", "Green",
    "C", "Red",
    "E", "Yellow",
    "Magenta"
)

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

8 REPLIES 8
aamnb7
Frequent Visitor

Hola,

¿Alguien pudo realizar esto?

Anonymous
Not applicable

Hi @elads ,

We can customize row headers but not in a dynamic based on values.

Vote this idea:  https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/32590199-apply-field-formatting-...

Best Regards,
Mail2inba4

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

parry2k
Super User
Super User

@elads yes you can 

 

image.png



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k 

 

 

Hi,

 

See attachment picture.

 

RowHeader.PNG

mdor
Frequent Visitor

@parry2k , @elads 

 

I don't understand how did you achieve that in the matrix. Could you please explain with more details?

 

Thanks in advance

@elads this you can easily achieve by writing a simple measure for color then use background under condtional formatting or store color in a table and get it from there

 

here is example measure for color to use in background

 

Color = 
SWITCH ( 
    MAX ( 'Table (2)'[Slicer] ),
    "A", "Blue",
    "B", "Green",
    "C", "Red",
    "E", "Yellow",
    "Magenta"
)

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k ,

 

Can I display both the value and the color as in my example..? 

@elads yes you can.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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