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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
egorlinus
Frequent Visitor

Conditional formatting subtotals of specific column in a matrix based on subtotals of another column

Hi Experts,

 I am novice to power bi and struggling with conditional formatting subtotals of specific column in a matrix based on subtotals of another column as shown below: For example: If subtotal of column "commsn." is less than or equal to subtotal of column "laying", a green icon should be displayed next to subtotal of column "commsn." or font color should change to green. Otherwise it should turn red. Please help.

Screenshot 2022-07-21 141052.png

1 ACCEPTED SOLUTION
SolomonovAnton
Super User
Super User

hello ! 

 

you shoild use conditional formating based on measure. Apply condition formation only for totals

SolomonovAnton_0-1658395891748.png

 

 

measure should looks like 

 

measure = if([commsn]<[laying],"green","red")

View solution in original post

4 REPLIES 4
egorlinus
Frequent Visitor

That's a perfect solution Anton,

Thanks a ton!

egorlinus
Frequent Visitor

Thanks for prompt response Solomon.

Laying and commsn are activities derrived from DIM table Activity.

I tried to create measure with SUMX and FILTER but unable to figure out how to filter on tables with joins. I am still uncomfortable with DAX. Can I share my pbix file on your email id?

of course you can feel free for send me email I sent my mail in  private message

SolomonovAnton
Super User
Super User

hello ! 

 

you shoild use conditional formating based on measure. Apply condition formation only for totals

SolomonovAnton_0-1658395891748.png

 

 

measure should looks like 

 

measure = if([commsn]<[laying],"green","red")

Helpful resources

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

Top Kudoed Authors