Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Correlation calculation

Hello all,

I have a table with 3 columns: Fundname, date and value. I have created two variables so you can input the name of the fund and I would like to calculate correlation between the variable value of any two funds. Please note that as the data of all the funds is merged in the same table, I cannot use directly the function correl, I would have to create a temporary table using the function aggr (I guess), but I don't know how to do it.

Anyone could help?

Thanks a lot!

3 Replies
swuehl
MVP
MVP

Maybe something like

=correl( Aggr( Only({<Fundname = {$(vFundA)}>} value), date), Aggr( Only({<Fundname = {$(vFundB)}>} value), date) )

Not applicable
Author

It worked!

Do you think it would be possible creating an straight table so there would be a row for each fundname, and computing the correlation entering a single fundname? If so, how would you do it?

Thanks in advance!

swuehl
MVP
MVP

Maybe something similar to what is shown in

Calculate correlation coefficient among all pairs of equities