Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average if and fractile

Hi

I would like to take the average of the lowest 90% of Dage - I imagine something like this - but I am doing something wrong -can you help me, please 🙂

=Avg({< Dage = {"<"&Fractile(Dage,0.90)} >} Dage)

1 Solution

Accepted Solutions
sunny_talwar

May be try this

=Avg({<Dage = {"$(='<' & Fractile(Dage,0.90))"}>} Dage)

or

=Avg({<Dage = {"<$(=Fractile(Dage,0.90))"}>} Dage)

View solution in original post

8 Replies
sunny_talwar

May be try this

=Avg({<Dage = {"$(='<' & Fractile(Dage,0.90))"}>} Dage)

or

=Avg({<Dage = {"<$(=Fractile(Dage,0.90))"}>} Dage)

hemachandran
Partner - Creator
Partner - Creator

try this expression

=Avg({<Dage = {"$(='<' & Fractile(Dage,0.90))"}>} Dage)

Not applicable
Author

Perfect - the first one did it 🙂

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post) and Helpful Answers (found under the Actions menu under every post).

If not, please make clear what part of this topic you still need help with .

Please never flag your own posts as Helpful or Correct.

I have removed the "helpful" flag from your own post.

May you live in interesting times!
Not applicable
Author

Sorry - I must be absolutely blind I cannot see the big "Answer correct" button - se attached screen dump

clik.JPG

oknotsen
Master III
Master III

Ah, you are not opening the actual topic but are replying to it from elsewhere (I think your inbox?). For some reason it does not show those big buttons in that case.

If you click on the topic title (so "Average if and fractile" in your case), it will open a new page with the topic (which also will show you all replies instead of just a selected few). You should now see the button.

thead_252326.png

May you live in interesting times!
Not applicable
Author

Thanks - now I got it 🙂

oknotsen
Master III
Master III

Happy I could help

May you live in interesting times!