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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AnandNamburi
Helper III
Helper III

How to format a matrix table

Hi Experts,

 

I have a matrix table and it look like below.

 

Column1 Column 2Column 3
FurnitureChair123
 Table254
 Sofa500
BeautySoaps587
 Shampoos 300
 xxx458
MobilesSamsung158
 Honoe458
 Oppo977

 

Now my requirement is to format like below.

Capture.PNG

 

When I enabled Matrix my column 1 is in rows and not in Values . That's why I'm not able to achieve this directly.

 

Is there any work around for this.

 

Thanks,

Anand

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @AnandNamburi 

You may want to use conditional formmatting for row headers in matrix visual.

I build a color measure and have a test.

Measure:

Measure = IF(MAX('Table'[Column1])="Furniture",1,IF(MAX('Table'[Column1])="Beauty",2,3))

Set conditional formatting in Background by Rules.

1.png

We can use conditional formmatting to format the color in value fields in matrix visual.

For more info to conditional formmatting, you may refer to this blog.

Your demand is a good idea, while it is not supported to implement in Power BI currently.

You can vote up this idea for this function:Conditional Formatting of Row Headers in Matrix

Or you can submit a new idea to improve the Power BI.
It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,

Rico Zhou

 

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

View solution in original post

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @AnandNamburi 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

v-rzhou-msft
Community Support
Community Support

Hi @AnandNamburi 

You may want to use conditional formmatting for row headers in matrix visual.

I build a color measure and have a test.

Measure:

Measure = IF(MAX('Table'[Column1])="Furniture",1,IF(MAX('Table'[Column1])="Beauty",2,3))

Set conditional formatting in Background by Rules.

1.png

We can use conditional formmatting to format the color in value fields in matrix visual.

For more info to conditional formmatting, you may refer to this blog.

Your demand is a good idea, while it is not supported to implement in Power BI currently.

You can vote up this idea for this function:Conditional Formatting of Row Headers in Matrix

Or you can submit a new idea to improve the Power BI.
It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,

Rico Zhou

 

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

Helpful resources

Announcements
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.