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
MkPowerBi
Frequent Visitor

clustered Chart Showing Incorrect Colors

Dear Gents,

I am creating a new Chart comparing sales between 2 years.

when i select the year 2018-2019 the 2018 sales appears in the correct colors on the chart same for 2019, but when i select 2019-2020, the year 2020 appears on the last year and 2019 remains Year to date, see below screenshot: the 2020 appears in Sales LY and 2019 appears in SalesYTD,can you please advise why ?

for YTD sales i am using this dax function : totalytd('total sales',date)

for LY sales i am using this dax function : Calculate('total sales',paralleperiod(date,-1,year)

The Numbers are correct but the colors should be the opposite

Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

Appreciate Your help.

4 REPLIES 4
Icey
Community Support
Community Support

Hi @MkPowerBi ,

 

I can't reproduce your issue. Please share me a dummy PBIX file, removing real data and sensitive information. Then I'll conduct specific tests.

 

 

Best Regards,

Icey

amitchandak
Super User
Super User

Just shuffle the measures up and down and check. Also, check the color assigned to each measure and change and a revert one of them

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

Shuffling the measures wont work, the problem also in the legend names, 2020 should appear as YTD and 2019 as Last year

Shuffling the measures wont work, the problem also in the legend names, 2020 should appear as YTD and 2019 as Last year @amitchandak 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.