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

Set analysis help rank()

i was inspired by one of the threads, and i came up with the following, but get an error:

Error in set modifier ad hoc element list: ',' or ')' expected


only({<[Cat]={"=Rank(max(Aggr($(vCoalitionView_ Size) , [Cat]))) =1"}>}Price)

 

I tested that this is correct without error   :max(Aggr($(vCoalitionView_ Size) , [Cat])) 

please help!

Labels (1)
1 Solution

Accepted Solutions
JGMDataAnalysis
Creator III
Creator III

Yes, try replacing with single quotes.

View solution in original post

7 Replies
sbaro_bd
Creator
Creator

Hi @alexpanjhc ,

And when you try it with the rank function (Rank(max(Aggr($(vCoalitionView_ Size) , [Cat])))), it works?

Regards.

alexpanjhc
Specialist
Specialist
Author

@sbaro_bd 

yes, that worked too! the rank is 1, which is what I expected.

JGMDataAnalysis
Creator III
Creator III

In the definition of the vCoalitionView_ Size variable, do you use double quotes?

 
alexpanjhc
Specialist
Specialist
Author

@JGMDataAnalysis 

yes double quote was used too, you mean this?

sum(DISTINCT{<[-TimeKey]={"$(=$(=vWalletMaxYear))"}>} (Wallet*1000000) 

JGMDataAnalysis
Creator III
Creator III

Yes, try replacing with single quotes.

JGMDataAnalysis
Creator III
Creator III

I'm assuming that the vWalletMaxYear variable does not involve double quotes.

 
alexpanjhc
Specialist
Specialist
Author

@JGMDataAnalysis  genius, thank you!