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

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.


@ 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!:
The Definitive Guide to Power Query (M)

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

Top Solution Authors