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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply

Need help with line chart x-axis

Line chart x-axis is skipping the values,

ie, missing december , feb etc..Can some one please help.

parvathisuku_90_0-1600181096612.png

 

1 ACCEPTED SOLUTION

Hi @parvathisuku_90 

 

1. You can add the calculated column = month(table(date))

Then put it to the x-axis and set the type as continuous.

 

2. You can create a calendar table and manage the relationship with fact table, then use the date as xaxis

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

6 REPLIES 6
Greg_Deckler
Super User
Super User

@parvathisuku_90 You need to change from Continuous to Categorical in your x-axis.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

If I change x-axis to categorical then it is showing every date. But I need not show only months.

parvathisuku_90_0-1600240778456.png

 

Hi @parvathisuku_90 

 

1. You can add the calculated column = month(table(date))

Then put it to the x-axis and set the type as continuous.

 

2. You can create a calendar table and manage the relationship with fact table, then use the date as xaxis

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @parvathisuku_90 - that is the known and expected behavior of the X axis on line charts. You may want to consider removing gridlines from the X-axis, if the "missing" months are going to be too distracting to your users.

 

David

dedelman_clng
Community Champion
Community Champion

Hi @parvathisuku_90

 

This behavior is because your X-axis is set to "Continuous", not "Categorical". You can switch it to categorical, but then every date entry gets its own spot on the axis and it may introduce a scroll bar as the data extends out to the right.

 

Hope this helps

David

amitchandak
Super User
Super User

@parvathisuku_90 , When axis type is continuous, line visual skips months. The other option is categorical

 

Axis_type.png

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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