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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.