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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Community Champion
Community Champion

@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!:
DAX For Humans

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.