Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Vittore8
Creator
Creator

Rank Help

Hi, please tell me how I can rank, by this expression
=Aggr(Rank({<main_category={"Games"},launched={">=$(=yearstart(makedate(2016)))<$(=yearend(makedate(2016)))"}>} backers),(backers, (Numeric, Ascending) ))

Vittore8_6-1589379085978.png

 

 

 

 

 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Rank cannot use set analysis, you need to use Only() or Sum() or another aggregation function here... may be try this

=Aggr(
  Rank(
    Only({<main_category={"Games"},launched={">=$(=yearstart(makedate(2016)))<$(=yearend(makedate(2016)))"}>} backers)
  )
,(backers, (Numeric, Ascending) ))

View solution in original post

3 Replies
sunny_talwar

Rank cannot use set analysis, you need to use Only() or Sum() or another aggregation function here... may be try this

=Aggr(
  Rank(
    Only({<main_category={"Games"},launched={">=$(=yearstart(makedate(2016)))<$(=yearend(makedate(2016)))"}>} backers)
  )
,(backers, (Numeric, Ascending) ))
Vittore8
Creator
Creator
Author

Thank you very much,why is it used here only() ?

Because there will be no duplicate values for each field?

sunny_talwar

I guess I used Only because you were using backers. backers = Only(backers). The benefit of Only() is that it allows you to use set analysis.