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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

cannnot show line chart over years

Hi, 

 

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

dogbural_0-1677853805875.png

Below is my data table, generated using 

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

dogbural_1-1677853850961.png

 

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. 

 

dogbural_2-1677853942087.png 

dogbural_3-1677853975658.png

 

Please advise. 

 

4 REPLIES 4
Anonymous
Not applicable

Update

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 ... ?

 

dogbural_0-1677932725126.png

dogbural_1-1677932771267.png

 

 

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.

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column?tabs=powerbi-deskto...

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!

Migasuke
Super User
Super User

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!

Anonymous
Not applicable

@Migasuke 

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

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.