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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Resident Load Help

HI Experts

I am doing a resident load

my objective is to show top 5 sales for each branch

But I am Stuck in Doing the Resident Load

Please Suggest

1 Solution

Accepted Solutions
maxgro
MVP
MVP

if you want top 5 in the script replace your S3 with

S3:

load * where id <= 5;

noconcatenate load

  *,

  if(peek(Branch)=Branch, peek(id)+1, 1) as id

Resident S2

order by Branch, SalesAmt desc;    

View solution in original post

3 Replies
maxgro
MVP
MVP

if you want top 5 in the script replace your S3 with

S3:

load * where id <= 5;

noconcatenate load

  *,

  if(peek(Branch)=Branch, peek(id)+1, 1) as id

Resident S2

order by Branch, SalesAmt desc;    

Not applicable
Author

Hi Massimo

In my Qvw I having Sales data for two Months April & May and 2 Branches

My requirement is to show top 10 With Max Sales For each branch

But if  I select May my Condition Working, but Not working for April

Got Stuck With This, Please Help

buzzy996
Master II
Master II

u can also try with dimension limits tab options,for the same..u can achieve the same result and simply way instituted of wring code in backend.