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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Graphs yearly order & different colour for each year

Hi, 

I am looking to get the below graph to run in monhtly order but to start with the 2022 months rather than have Jan 23 at the start. It would also be helpful if the 2023 bars were a different colour. Can anyone help with this? 

 

I have also had to include the month number to get the months in order but I would prefer to just have the month name showing on my graph to make it cleaner. Can I hide the month number along the x axis? Thanks for any help. 

 

Calb123_0-1681372671006.png

 

1 ACCEPTED SOLUTION

the diffent colours for years can be achieved by using conditional formatting based on a calculation Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

View solution in original post

2 REPLIES 2
ovde
Resolver II
Resolver II

You want to sort [Month Name] by [Month] see Sort one column by another column in Power BI - Power BI | Microsoft Learn . This will mean that you no longer need to show the month numbers.

Then you can sort the chart by the [Year] + [Month name] see Change how a chart is sorted in a report - Power BI | Microsoft Learn

Hope this helps!

the diffent colours for years can be achieved by using conditional formatting based on a calculation Apply conditional table formatting in Power BI - Power BI | Microsoft Learn

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.