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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
AMS77
Frequent Visitor

Show multiple years in monthly graph

Hi,

 

I would like to show in a graph (like the attached line ; but same question for column) a continious monthly dataset running over multiple years. How can I achieve this ? To clarify I want to first show Jan to Dec 2018 and then the graph should continue with Jan to Dec 2019.  (I understand that I can show a different line for the 2018 and 2019 values using the same shared month axis; but I really want the line to continue; so showing all months twice)

 

chart.JPGdatetable.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @AMS77 ,

In my opinion, I'd like to suggest you add 'year' to axis and drill down to show the whole graph. (Notice: it will change visual sort order)

For the sort order issue, you can take a look at the following link to create a custom sort order table to fix it.

Custom Sorting in Power BI  

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @AMS77 ,

In my opinion, I'd like to suggest you add 'year' to axis and drill down to show the whole graph. (Notice: it will change visual sort order)

For the sort order issue, you can take a look at the following link to create a custom sort order table to fix it.

Custom Sorting in Power BI  

Regards,

Xiaoxin Sheng

guiggs
Helper II
Helper II

Hi @AMS77 !

 

You can create a calculated column with the year and the month; after that you put the column in the X axis and you can resolve your question

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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