Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
alenb
Partner - Contributor III
Partner - Contributor III

Simple Linear Regression for sales prediction

There are 3 things I'd need to address.

1. Preparing the data to show the cumulative per-day sales

I'm trying these two approaches in the table, but it is not accumulating sales by the Date.

Aggr((Sum(Sales), Date), Date)

RangeSum(Above(Sum(Sales), 0, RowNo()))

2. Actually using the data for linear regression. This actually seems the easier part.

Planning to use LinEst_M for slope and LinEst_b for intersect, LinEst_R2 for analysis. 

3. Visualizing the line as in excel below.

 

Sample data:

alenb_0-1638284826111.png

 

Excel line rendering:

alenb_1-1638284851554.png

 

 

0 Replies