Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
livio218526
Creator
Creator

Linear Regression like Reference Line (Scatter-Plot)

Hi everyone,

I need to add a linear regression to a scatter plot like a reference line.

Here an example:

Capture.JPG

How I can to do it?

Thanks,

Livio

4 Replies
ChennaiahNallani
Creator III
Creator III

livio218526
Creator
Creator
Author

Sorry, but I don't understand.

I need to add a linear regression about "Delta AVG Process Time".

I attached a simple of Application with the scatter plot where i want to have a reference line.

BalaBhaskar_Qlik
Master
Master

In your scatter plot, add an extra measure as:

linest_m(total aggr(if(sum(DeltaAVG#Rows),sum(DeltaAVG#Rows)),DeltaAVGProcessTime),DeltaAVGProcessTime) * 

only({1}DeltaAVGProcessTime) +

linest_b(total aggr(if(sum(DeltaAVG#Rows),sum(DeltaAVG#Rows)),DeltaAVGProcessTime),DeltaAVGProcessTime).

livio218526
Creator
Creator
Author

not work