Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue in Aggr Rank fn in set anlysis

Hi swuehlmaxgrosunindiaRamonCova06

Even though I have given 1 in my set analysis to exclude current selection, still it's getting applied to my Aggr Rank expression. How do I handle this issue?

1 Solution

Accepted Solutions
sunny_talwar

Awesome

I am glad it worked. Would you mind closing this thread by marking the correct answer.

Best,

Sunny

View solution in original post

3 Replies
sunny_talwar

You need {1} a lot of the other places.Try this:

Rank(Only({1}Aggr(


Sum({1< [Transaction ID] -= {$(vTransactionIDsToExclude)}, $(vSecFilter)>+<[Transaction ID] = {$(vTransactionIDsToInclude)}>} [SEC Amort Discounted Balance])


+


Sum({1<[Active Flag] = {'Active'}>}, [Portfolio Code] = {'1'}, Company Code = {'1'}, [Region Code] = {'60'}>}[SEC Amort Discounted Balance]),


Customer Name)))


Not sure how you define your variables vTransactionIDsToExclude, vSecFilter and vTransactionIDsToInclude

Not applicable
Author

Sunny, Thank you it worked..

sunny_talwar

Awesome

I am glad it worked. Would you mind closing this thread by marking the correct answer.

Best,

Sunny