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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
amikm
Helper V
Helper V

How to change the font color of a Row header field in matrix visual

I have a product table and It has a column ProductType. I have a created a matrix visual where I dragged this ProductType column in the Row Header.

 

I want the data should look like this

amikm_0-1670475097904.png

 

But when I am changing the color from the properties area, I am only able to assign one color for the entire ProductType Column. I want to assign different color for each ProductType value ( like above)

 

Thanks

1 ACCEPTED SOLUTION
pratyashasamal
Super User
Super User

Hi @amikm ,

Creating a matrix by dragging the column to the canvas .

First Create a table with Product Type and color .

pratyashasamal_1-1670483732316.png

Now create a relationship betweem the Product Type column in Main Table and newly created table .
Note : You could also add a column to the existing table and add the color names as well .By doing this you won't need to create a new table and create relationship .

pratyashasamal_3-1670484045973.png

 



Go to Cell Element and turn on the Font Color For the column "Product Type" .Now click on fx below the Font Color toggle button

pratyashasamal_0-1670482510199.png

Now keep the formatting as shown the image below.

pratyashasamal_2-1670483850096.png

Now you will get the desired result.
Thanks 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
pratyashasamal
Super User
Super User

Hi @amikm ,

Creating a matrix by dragging the column to the canvas .

First Create a table with Product Type and color .

pratyashasamal_1-1670483732316.png

Now create a relationship betweem the Product Type column in Main Table and newly created table .
Note : You could also add a column to the existing table and add the color names as well .By doing this you won't need to create a new table and create relationship .

pratyashasamal_3-1670484045973.png

 



Go to Cell Element and turn on the Font Color For the column "Product Type" .Now click on fx below the Font Color toggle button

pratyashasamal_0-1670482510199.png

Now keep the formatting as shown the image below.

pratyashasamal_2-1670483850096.png

Now you will get the desired result.
Thanks 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





chrisyan_manalu
Helper II
Helper II

Hi @amikm 

 

You have to create the flag ID based on ProductType. 

chrisyan_manalu_0-1670480773052.png

And you can create fuction rules to change the colour of rows 

chrisyan_manalu_1-1670480806547.png

 

 

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.