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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
anushree1
Specialist II
Specialist II

Linest_R2 Function Usage

HI,

I have been using the Linest_R2 for the first time , I do understand it gives the co relation between 2 values.

I have the y and x values which are to be considered within Linest_R2 function as sum(y) and sum(x) , but when i apply this i get an error stating nested aggregation is not allowed.

So could someone guide me how sum(y) and sum(x) values be used within Linest_R2 function

2 Replies
anushree1
Specialist II
Specialist II
Author

Does anyone have any suggestions for the above Query

Frank_Hartmann
Master II
Master II

try this:

=LINEST_R2(total aggr(Y,X),X)

or


=LINEST_R2(total aggr(sum(Y),X),X)


hope this helps