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! Request now

Reply
Anonymous
Not applicable

Color formatting by other columns

Hello Power BI community,

 

is there any option to color format a column by more than one other column?

 

I have two tables:

The first contains in every cell one value and the GM1 should be the colored column.

ContractBranchTypeTeamGM1
130OL6018
230MDL56850
321OL23480
45Ol3423
55MDL50015

 

The second table determines the color. I have to check if team,branch and type match with the first table and compare the percentage and the GM1 to determine the color. Team and branch are only optional fields thats why they are blank. I have to use the specialised type that means if team,branch and type 601,30,MDL matches with the first table i have to compare this percentage->Red and not 30,OL->green

 

Are they any ideas? Thanks in advance

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , when you go to conditional formatting, You can choose a measure other than that column to the color group.

 

or create a measure like this and use it with Field option in coditional  formatting

color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)

refer for steps

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

Not very clear.

 

You can check

 

https://community.powerbi.com/t5/Desktop/Color-Conditional-Formatting-Matrix/m-p/959291

https://community.powerbi.com/t5/Desktop/Matrix-visual-color-conditional-formatting/m-p/1153577

 

https://www.youtube.com/watch?v=BbuikATa3ow

https://www.youtube.com/watch?v=MAISRa88bl0

 


Regards,

Harsh Nathani


Appreciate with a Kudos!! (Click the Thumbs Up Button)

Did I answer your question? Mark my post as a solution!

 

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.

Top Solution Authors