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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Matrix Formatting Ideas

Hi All,

 

Kindly let me know how can I highlight specific rows background and make the values in Bold in a matrix visual.

 

Column 1, Column 2 and Column 3 are separate measures

Results - Just a column in a table

 

Christ_30_0-1700142649256.png

 

Thanks

 

1 ACCEPTED SOLUTION
oritam3210
Helper I
Helper I

Hi,
I think you can achieve something very similar to what you are looking for,
like this

oritam3210_2-1700173452388.png

first, you need to create 2 measures for that:
1) back color - for the background rows you want to highlight 

2) font color - for highlighting the text with the dark background 

see examples


back_color =
VAR selctedVal = SELECTEDVALUE('Dim Date'[MonthYearInt])
RETURN
IF(selctedVal IN {202203,202205,202212}, "GRAY","WHITE")

 

font_color =
VAR selctedVal = SELECTEDVALUE('Dim Date'[MonthYearInt])
RETURN
IF(selctedVal IN {202203,202205,202212}, "WHITE","BLACK")

 

second,
you need to define for each column (measure) the condition on "Cell elements"

oritam3210_1-1700173424890.png

 

good luck

View solution in original post

4 REPLIES 4
oritam3210
Helper I
Helper I

Hi,
I think you can achieve something very similar to what you are looking for,
like this

oritam3210_2-1700173452388.png

first, you need to create 2 measures for that:
1) back color - for the background rows you want to highlight 

2) font color - for highlighting the text with the dark background 

see examples


back_color =
VAR selctedVal = SELECTEDVALUE('Dim Date'[MonthYearInt])
RETURN
IF(selctedVal IN {202203,202205,202212}, "GRAY","WHITE")

 

font_color =
VAR selctedVal = SELECTEDVALUE('Dim Date'[MonthYearInt])
RETURN
IF(selctedVal IN {202203,202205,202212}, "WHITE","BLACK")

 

second,
you need to define for each column (measure) the condition on "Cell elements"

oritam3210_1-1700173424890.png

 

good luck

Anonymous
Not applicable

Hi,

 

Thank you for sharing the idea. Sure! Let me try this.

 

How can I highlight the same row headers also? ( Gross Profit, EBITDA and EBITDA Margin)

Hi, 
I don't think it is possible at the moment

Anonymous
Not applicable

Hi,

 

Oh Okay! 

 

Thank you so much

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.