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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
CaveOfWonders
Helper IV
Helper IV

Conditional Formatting Colour Scale Not Shading Correctly

Hi All,

 

I created the Stacked Bar Chart below based on one categorical Field with 4 distinct values and dropped a measure into the Value box and attempted to apply conditional formatting based on the count. As you can see there seems to be something wrong here as the top bar (A) is a lighter shade of purple than the bar below it (B). Why is this not shading correctly?

 

The calculation of the measure being used:

 

Field =
CALCULATE (
  COUNTROWS (
    FILTER (
       'Table 1',
       'Table 1'[Completion Date] <> BLANK ()
       && 'Table 1'[Completion Date] < 'Table 1'[Planned Completion Date])))

 

Chart

Stacked Bar.JPG

Conditional Formatting:

CF.JPG

Measure:

 

measure.JPG

 

formattinf of measure.JPG

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@CaveOfWonders , I doubt it used correctly. It should ask aggregation for the measure. Have taken correct measure

 

Conditionalformatting_range.png

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@CaveOfWonders , I doubt it used correctly. It should ask aggregation for the measure. Have taken correct measure

 

Conditionalformatting_range.png

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

Should I be using the Measure as the Count? I am currently using the Categorical field?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors