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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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