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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.