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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Trend line - R2, slope and interception

Hi all, 

 

I am trying to get R2, slope and intercept for my dynamic line chart with no sucess. Attached is a screenshot of my report. Yellow are the questions I would love to find out the answser.

 

Few important notes - on the Y axis, I have a field (under Variable). The X axis is a parameter under the ana table. The formula should change depending which Variable is selected (DelAssay, DelMAG or DelTotal) but also depending on the StabTemp slicer. Would be ideal if I can get that numbers either on the plot or as a separate table. Additinally, the prediction of the Y value based on the X value is also needed, but I guess if I know how to get slope and intercept, this should not pose a problem. 

 

Who would imagine that obtaining a simple regression formula will give so much headache in Power BI - or maybe it is just me.

 

Any help is appreciated. 

Capture.PNG

  

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I have foud a similar post, please refer to it to see if it helps you.

How can I display the slope and y intercept of the... - Microsoft Fabric Community

vrongtiepmsft_0-1706166300080.png

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

I have foud a similar post, please refer to it to see if it helps you.

How can I display the slope and y intercept of the... - Microsoft Fabric Community

vrongtiepmsft_0-1706166300080.png

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors