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
PaulPalkowski
Helper II
Helper II

Month Only On X Axis and Trend Line

I have looked and can't seem to find a sensible answer or solution...My table only has three columns...very simple

My data is from jan 1 2020 to Sept 30 2020. I have a column that has a date (X Axis), and another column that has a value (Value), and another column that represents one of three different types (Legend). 

All I want is a simple Cluster Column chart, that shows

  1. the month name, for the x axis
  2. The values as the columns
  3. The types for Legend

Easy.. done...

 

PaulPalkowski_0-1602182687550.png

Now, All I want a trendline

PaulPalkowski_1-1602182749648.png

Not easy for whatever reason, if I remove year from the date heirarchy I cannot select continous type for my X axis...

PaulPalkowski_2-1602182782633.png

 

I don't want to show the year,

Once I put year in my chart, i get this

 

I want to show each month and what the trend currently is..

Why is this so difficult?

Obviously PowerBi knows it's a date since it is arranged that way, and not alpha...

 

 

 

 

1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
Community Support

Hi @PaulPalkowski ,

 

Sorry for that the text type of the X axis will affect the Trend line.

If you want to add a trend line, you need to create a month number column, and put it in X axis.

 

Month number = MONTH('Table'[Date])

 

month1.jpg

 

Or you can refer the following links.

https://geekdecoders.blogspot.com/2019/02/how-to-add-trend-line-in-power-bi-chart.html

https://community.powerbi.com/t5/Desktop/Trend-Lines/td-p/31793

 

If you have any question, please kindly ask here and we will try to resolve it.

 

Best regards,

 

Community Support Team _ zhenbw

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

7 REPLIES 7
v-zhenbw-msft
Community Support
Community Support

Hi @PaulPalkowski ,

 

Sorry for that the text type of the X axis will affect the Trend line.

If you want to add a trend line, you need to create a month number column, and put it in X axis.

 

Month number = MONTH('Table'[Date])

 

month1.jpg

 

Or you can refer the following links.

https://geekdecoders.blogspot.com/2019/02/how-to-add-trend-line-in-power-bi-chart.html

https://community.powerbi.com/t5/Desktop/Trend-Lines/td-p/31793

 

If you have any question, please kindly ask here and we will try to resolve it.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Microsoft has some work to do for this..

Got what I needed

I did get that far, How do I display the Month name?

Hi @PaulPalkowski ,

 

Sorry for that if you want to add a trend line, the x axis cannot be text.

You can create a trend line based on month number.

 

Or you can create Line and clustered column chart, and create a line using DAX.

The more detail please refer the following post.

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

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@PaulPalkowski , with year, you use expand icon the one with reverse square Y. That might give a better UI and continous axis. 

No, when I expand the trend line option disappears

PaulPalkowski_0-1602248760846.png

Not Expanded

PaulPalkowski_1-1602248799496.png

Expanded

@PaulPalkowski , The option remains in line visual after expand not in bar. I tried to concatenate label: off it looks better but not continous

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.