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!:
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors