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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
harshadrokade
Post Partisan
Post Partisan

Conditional formatting on row level data of matrix table

Hi

 

I have below data which is converted into a Matrix table in power bi-

I want to apply conditional formatting on the visual where the data bars should compare the specific subject value for all the students. As of now, the cnditional formatting option of power bi allows me to compare the Specific student value of all the subjects. I want to apply row specific conditional formatting & not on column level.

 

How can I achieve the same?

 

Visual-

harshadrokade_0-1652009330485.png

 

 

Data-

SudentSubjectValue
AX111
AX29
AX315
AX419
AX58
AX65
BX110
BX25
BX38
BX48
BX510
BX611
CX19
CX27
CX313
CX45
CX517
CX614
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @harshadrokade ,

Here are the steps you can follow:

1. Create calculated column.

rank_column =

RANKX(FILTER(ALL('Table'),'Table'[Subject]=EARLIER('Table'[Subject])),'Table'[Value],,DESC)

vyangliumsft_0-1652239062394.png

2. Format  -- Background color – Advanced controls

vyangliumsft_1-1652239062395.png

3. Enter the Background color –Value interface.

Format style – Gradient

What field should we based this on --- Sum of [rank_column]

Check Add a middle color to generate a custom middle color

vyangliumsft_2-1652239062399.png

4. Result:

vyangliumsft_3-1652239062400.png

 

Best Regards,

Liu Yang

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
Anonymous
Not applicable

Hi  @harshadrokade ,

Here are the steps you can follow:

1. Create calculated column.

rank_column =

RANKX(FILTER(ALL('Table'),'Table'[Subject]=EARLIER('Table'[Subject])),'Table'[Value],,DESC)

vyangliumsft_0-1652239062394.png

2. Format  -- Background color – Advanced controls

vyangliumsft_1-1652239062395.png

3. Enter the Background color –Value interface.

Format style – Gradient

What field should we based this on --- Sum of [rank_column]

Check Add a middle color to generate a custom middle color

vyangliumsft_2-1652239062399.png

4. Result:

vyangliumsft_3-1652239062400.png

 

Best Regards,

Liu Yang

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

SpartaBI
Community Champion
Community Champion

@harshadrokade follow the instructions in this great tutorial video:
https://www.youtube.com/watch?v=wTRrskQzAHk&t=8s


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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