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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Calculated Fractile

Hi,

I have a good working Fractile Reference Line in a scatter chart:

=Fractile(Aggr(COUNT(DISTINCT{$<ivStat={1}>} Account#),StaffName),0.95)

However, when I select/filter by staff name, the reference line moves.

What I would like to happen is that the reference line stays and a pointer to the staffname to appear. So I could see the staffname performance in reference to the 95% fractile..

Thanks

1 Solution

Accepted Solutions
sunny_talwar

So you are looking for a way to ignore selection in staffname field?

=Fractile({<StaffName>}Aggr(COUNT(DISTINCT{$<ivStat={1}, StaffName>} Account#),StaffName),0.95)

View solution in original post

6 Replies
Anil_Babu_Samineni

Perhaps This

=Aggr(Fractile(COUNT({$<ivStat={'1'}>} DISTINCT Account#),StaffName),0.95)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Hi Anil,

Thanks for your response:

The Fractile() function needs the 0.95 parameter. However, I did switch positions, including the parameter, but it did not work.

sunny_talwar

So you are looking for a way to ignore selection in staffname field?

=Fractile({<StaffName>}Aggr(COUNT(DISTINCT{$<ivStat={1}, StaffName>} Account#),StaffName),0.95)

Anonymous
Not applicable
Author

That's right Sunny.

Your suggestion makes sense, but its not working.

Thanks

jonathandienst
Partner - Champion III
Partner - Champion III

I agree with Sunny - you need to override the relevant fields in Fractile() to prevent the Aggr() being reduced by that selection. That is what is happening at the moment and is why your reference line is changing. It also needs to be overridden inside the Aggr().

If necessary, change the field name (StaffName) to the correct name (or names) from your application.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Sunny ( and J.D.) , thanks very much - you were correct. I had to apply this methodology also to my dimensions/expressions.

Thanks!!