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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ArchStanton
Impactful Individual
Impactful Individual

Trendline needed

I have a simple linechart with MonthName on the x-axis (this is derived from my own custom built calendar going from Apr to Mar as per Financial Year) and a DISTINCTCOUNT Measure of IDs for the Y axis, I would like to add a Trendline.

 

I do not see the option at all when using the Line Chart or Clustered Column chart: 

ArchStanton_0-1678812151748.png

 

Can anyone help? Thjis should be easy to do, its very frustrating!

 

Thanks

1 ACCEPTED SOLUTION

@ArchStanton 

I would think they would be the same line.

nleuck_101_0-1678900338557.png

 

View solution in original post

32 REPLIES 32

@Anonymous 

 

Can you screenshot your measure?

Anonymous
Not applicable

Yes,

 

eng23_0-1679433042726.png

 

@Anonymous 

 

It looks like you're using a measure at the Intercept + Slope * measure in the RETURN section. You want to use your column [Progress_date] not a measure.

Anonymous
Not applicable

ok , but may I ask why there is the red line under my [Slope1] and [intercept]? thanks..

@Anonymous 

When you use LINEST or LINESTX it creates a single row with ten columns. In the measure that I provided we are creating a variable using LINESTX. The red lines under [Slope1] and [Intercept] is becasue it doesn't recognize those as columns until you've finished creating the measure. Those variables get calculated in order from top to bottom.

@ArchStanton 
I have the same thing with mine but it works just fine.

nleuck_101_0-1678898776952.png

 

 with same Y Axis set at Zero:

 

ArchStanton_1-1678899979426.png

 

Thanks, I've finally got it to work 😊

I've notice the trendline is far steeper with your Variable (see solid line in top line graph) compared to when I use the inbuilt Trendline using the Continuous x Axis date range. This inbuilt range has every other month missing which is why I'm desperate for an alternative option.

I guess I need to decide which one to use. My only other option is to Snip an image of the the x axis with complete months and paste them over in Powerpoint when this get presented, incredible we still have to do this in 2023!

Thanks for all of your help!

@ArchStanton 

I would think they would be the same line.

nleuck_101_0-1678900338557.png

 

as per screenshot, one is far steeper than the other. Its fine though, I can use either

Thanks for helping me with this, much appreciated!

amitchandak
Super User
Super User

@ArchStanton , Click on the first icon.

 

amitchandak_0-1678814447116.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! Get ahead of the game and start preparing now!

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.