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
Nicki
Helper III
Helper III

Correct values when there is a relation between two tables

Hello, I have two tables  and there is a relation between them on the code column. 

When I want to use HexColorCode to show the color in stacked column chart, it brings the first color (yellow) for both city.

Dataset for chart is city table but I want to show the color.

Thank you for any idea.

 

Code

HexColorCode

1

#F2C80F(yellow)

2

#8AD4EB(Blue)

 

Code

City

Total Events/Year

1

XXXX

20

2

ZZZZZ

40

2 REPLIES 2
amitchandak
Super User
Super User

@Nicki , Stacked column visual(with legend do not support conditional formating.

 

I think the bar with more than one axis and one measure can do.

 

You can use measure max(Table1[HexColorCode])

in conditional formatting with field value option

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

Thank you for reply. My Stacked  chart does not have legend and I have already used conditional formating.

It happens when I am using a column from another dataset. If I bring the HexColorcode column inside of city table it works fine.

I am thinking maybe I missed something related to relation setting.

 

Nicki

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.