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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
RB-0613
Regular Visitor

3M trend calculation using linear regression method

Hi ,

I have a tableA that has date and sales value column. Date column has data from 03/2027 till 06/2023

I have also created a date table .

Sample  TableA data : 

Date                Value 

01/03/2017      50

01/04/2017      25

.

.

.

01/06/2023.     32

 

I need to create 3 months trend , 6months trend based on above sample data . 
I need to see forecasted value of sales starting from 01/07/2023 using linear regression technique so I get a straight line for trends calculation . 

4 REPLIES 4
RB-0613
Regular Visitor

Any workarounds if anyone can help me with .

Your sample data is not usable.  Please provide more realistic data.

 

lbendlin_0-1715203703523.png

 

RB-0613
Regular Visitor

I have attached sample data below.

DateValue
01-03-2022      82
01-04-2022      53
01-05-2022      75
01-06-2022      64
01-07-2022      88
01-08-2022      75
01-09-2022      50
01-10-2022      81
01-11-2022      63
01-12-2022      43
01-01-2023      94
01-02-2023      68
01-03-2023      73


Below is the image of expected results.
IMG_2184.jpg

lbendlin
Super User
Super User

You are making conflicting statements on what you are trying to achieve. Did you try to use the built-in trending line or forecast line?

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.