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
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
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 Fabric 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.