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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.