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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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
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.

balabhaskarqlik

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