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: 
qliker3
Creator
Creator

Do not allow selection in column correl

so i have this formula to calculate the correlation in a column (i have multiple)

Correl(
Aggr( Sum( distinct prCount), [SNr], [Version], Time, Name),

Aggr( if(Duration <= Fractile(Total Duration, 0.99836), Duration), [SNr], Version, Name, Time))

i want this to ignore the selection in filter pane for the field "Path". I tried:

Correl(
Aggr( Sum( distinct {<Path = >} prCount), [SNr], [Version], Time, Name),

Aggr( if(Duration <= Fractile(Total Duration, 0.99836), {<Path = >} Duration), [SNr], Version, Name, Time))

but it didnt work. 

 

Could you please help me with fixing this? 

 

Thanks 

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Ohh, sorry you have another aggregation function, i.e - fractile. Put the set in that too and let me know.

View solution in original post

5 Replies
tresesco
MVP
MVP

Try putting the set componets in Correl() as well like:

Correl(  {<Path = >} 
Aggr( Sum( distinct {<Path = >} ...

qliker3
Creator
Creator
Author

this did not help 

tresesco
MVP
MVP

I see you are putting set in if(... structure, that needs to be corrected. Try bringing that down to aggr(), like:

Aggr( {<Path = >} if(Duration <= Fractile(Total Duration, 0.99836),  Duration)

qliker3
Creator
Creator
Author

still dosent work: 

Correl( {<Path = >} 
Aggr( Sum( distinct {<Path = >} prCount), [SNr], [Version], Time, Name),

Aggr( {<Path = >}  if(Duration <= Fractile(Total Duration, 0.99836), Duration), [SNr], Version, Name, Time))

tresesco
MVP
MVP

Ohh, sorry you have another aggregation function, i.e - fractile. Put the set in that too and let me know.