Showing results for 
Search instead for 
Did you mean: 
Not applicable

cannnot show line chart over years



Tried to show line chart year over years but showing separate months. 


Below is my data table, generated using 

Date = Calendarauto()
Month & year are in Text format. 



When I did with simple trial (generated all in excel) , I could do what I want. But not sure why it does not work on full data model. 





Please advise. 


Not applicable


When I changed data format in Month column as below, showing integer (after changing to whole number), not Text format, I now can see gragh i wanted.

However, how can i show x-axis column in Jan, Feb .... Not 1,2 ... ?






This seems to be very odd if changing your format solves the problem.
I would still create a new column with MMMM format and use your integer month column for sorting by. Just click on a new MMMM and change sort by option.

In case you would still have problems with the X axis, please share some sample or additional printscreens.


If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

Solution Sage
Solution Sage

Hi @Anonymous ,

Can you also show, which fields you use and how in the visual?
If you want to see the outcome as you have on lowest picture, you need to do following:
1. Put values in Y axis
2. Put Months in X axis
3. Put Year in Legend.

This should work fine.

If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

Not applicable


Thats how i did for both first and second grapshs. But somehow first graph does not show like second one. 

Is something wrong with date model ?

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors