cancel
Showing results for 
Search instead for 
Did you mean: 
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"
)

 






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






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"
)

 






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.






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
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors