Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am not able to figure out the problem with this Set Expression:
=count({<Author_Name = {"=rank(count({<Word_Count = {'>250'}>}Stories))<=5"}>}Stories)
I have written it to count the number of stories where Word_Count is over 250 with top 5 authors... This expression returns the number but not correct.. it is ignoring condition to check word_count > 250. Even if I change 250 to 100 there is no difference.
Absolutely.
Hi Sunny, hope u are well.. sorry for the confusion (<5 or <=5). However the issue still persists:
=Count({<Author_Name = {"=rank(count({<Word_Count = {[>250]}>}Stories))<5"}>}Stories)
Even with the your expression, it is ignoring Word_Count filter. Even if I make it 100 or any other number.. expression gives the same result.
I tried all these variants :
=count({<Author_Name = {'=rank(count({<Word_Count = {">250"}>}Stories))<=5'}>}Stories)
=count({<Author_Name = {"=rank(count({<Word_Count = {'>250'}>}Stories))<=5 "}>}Stories)
=Count({<Author_Name = {"=rank(count({<Word_Count = {[>250]}>}Stories))<=5"}>}Stories)
=count({<Author_Name = {"=rank(count({<Word_Count = {"">250""}>}Stories))<=5"}>}Stories)
they all give same result..
22469+20744+20659+14480+10416 = 88768 this is the number that I am getting with all the above mentioned expression.
17202+15977+15849+11071+8090=68189. This is the number which I am expecting.. with filter of word count more than 250.
You may try this as well -
=count({<Author_Name = {"=rank(Aggr(count({<Word_Count = {'>250'} >}Stories),Author_Name))< 5 "}>} Stories)
Thanks but same result.. as if it is ignoring or not understanding Word_Count<250
same story, even if you make 250 as 100 you get same result.
See if this makes any difference or else share the sample data to try further -
=count({<Author_Name= {"=rank(count({<Word_Count = {[>250]} >}Stories))< 5"},Word_Count = {">250"}>} Stories)
yeah that worked, I see you intelligently used an additional filter to filter the data set.