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.
If there are multiple aggregation functions like count/sum in an expression. The set expression is needed to be written for all.
If you feel it solved your issue, you may like to close this thread.
Can you try this and check?
=count({<Author_Name = {"=rank(count(IF(Word_Count > 250, Stories)) <=5"}>} Stories)
Thanks for checking this..
yes after adding missing ")" it is working
=count({<Author_Name = {"=rank(count(IF(Word_Count > 250, Stories))) <5"}>} Stories)
I understand that I can use IF instead but I am more curious to know where is the problem with my expression?
What values does your Word_Count holds? Can you share a sample to look into?
! !
I think the two expressions are slightly different... one is < 5 and other is <= 5...If I change set analysis to < 5.. it gives 78352 also
=Count({<Author_Name = {"=rank(count({<Word_Count = {[>250]}>}Stories))<5"}>}Stories)
Try this expr: you were using <= 5 rather than < 5 so just removed =.
=count({<Author_Name = {"=rank(count({<Word_Count = {'>250'} >}Stories))< 5 "}>} Stories)
Thanks for reminding. Its been quite a while I used [] brackets inside set.
This is my first time
Never had to use it before, but with the introduction of stricter quoteology, we might have to use it more often