Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Any way to make this formula work?

I cant get this formula to work in a chart expression, I've tried with aggr and putting the expression in a variable, not sure if possible or what am I doing wrong

=count(if(FCT<Fractile(FCT,0.9),PO))

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

This works:

count(if(FCT < aggr(NODISTINCT Fractile(total<Wk_Num> FCT, 0.9),Wk_Num), PO))

See attached.  You'll probably need to replace the Wk_Num with the current field of the cycle group.

Edit: In fact, it works without total as well:

count(if(FCT < aggr(NODISTINCT Fractile(FCT,0.9),Wk_Num), PO))

The secret word is still NODISTINCT

View solution in original post

24 Replies
Anonymous
Not applicable
Author

You maybe need aggr(), but what you need for sure is "total".  Try this first:

=count(if(FCT<Fractile(total FCT,0.9),PO))

ashwanin
Specialist
Specialist

use

=count({<FCT<Fractile (FCT,0.9) >} PO)

Anonymous
Not applicable
Author

Hi Michael, unfortunately that way it won't consider my dimension field, which is the month in the x axis.

If I add it to the Total clause, it won't work again

Anonymous
Not applicable
Author

Hi Ashwani, I got an this: "error in set modifier expression"

Anonymous
Not applicable
Author

Can you upload a small example?

Anonymous
Not applicable
Author

try this


=count({<FCT={'$(<Fractile (FCT,0.9))'} >} PO)

Anonymous
Not applicable
Author

or

=count({<FCT={'<$(Fractile (FCT,0.9))'} >} PO)

sunny_talwar

May be this:

=Count({<FCT = {'< $(=Fractile(FCT, 0.9))'}>}PO)

Best,

Sunny

Anonymous
Not applicable
Author

Not working