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

Displaying all Months on X Axis

Hi everyone, 

 

Just wondering if its possible to display all months while using a trendline on the X Axis? So far it is only displaying every second month January March May July Sept Nov, is there any way to include all 12 months? my table has all the months entered, no idea why it is omitting the other months. 

Thanks in advance. 

 

6 REPLIES 6
MFelix
Super User
Super User

Hi @Anonymous ,

 

Check the post below:

https://community.powerbi.com/t5/Desktop/DAX-to-create-a-Trend-line/td-p/398438

 

@OwenAuger  was abble to achieve the trend line, I tried it with a small sample and it gave me something similar to what is expected but this may need to be adjusted to your own needs and model.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @Anonymous ,

 

when you add dates and numbers to your axis by default the x-axis is on continuous mode and adjust the months that shows in the axis you need to go to the options and change the x-axis to categorical will return all the months.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi,

 

I have data for all months except June:

When I show as Type continous the data is showing as zero which is correct but the month labels are every second month.

When I show as Type categorical the month labels are every month except June is completely missing.

 

Do you know how to fix this?

 

Hi @Anonymous ,

 

That has to do with the setup, automatically when you select the continuos date if the size is not big enough you will get every X months can be second third whatever:

MFelix_0-1611925343809.png

 

Has you can see on top both chart have continuous date however the first one is of the full year and presents information every 2nd month the second chart is filtered after October and shows all months,

 

Regarding the question about the categorical click on the arrow on months and select shows values without data:

MFelix_1-1611925474466.png

 

Or create a measue with the following syntax

Measure =COALESCE(Sum(Tablle[Column]),0)

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Thanks @MFelix , unfortuntaley when I switch it to categorical, I lose my trend line.

Ah, you are correct @Anonymous categorical does not support the trend line. Not sure there is a whole lot you can do. In Continuous, Power BI sort of decides on its own what to display in the 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...

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.