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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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