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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
lalitkgehlot89
Partner - Creator II
Partner - Creator II

Need Logic help

Hi,

In given data i want to show top 3 storeid of each businessline with Netamount.

Please help me out.

Regards,

Lalit Kumar

9 Replies
varshavig12
Specialist
Specialist

Try using Rank()

florentina_doga
Partner - Creator III
Partner - Creator III

see attach

tresesco
MVP
MVP

PFA

lalitkgehlot89
Partner - Creator II
Partner - Creator II
Author

no attached file found.

lalitkgehlot89
Partner - Creator II
Partner - Creator II
Author

no attached file found.

sujayrpatil
Partner - Contributor III
Partner - Contributor III

Hi lalit ,

You can use the below condition to get top 3 net values of Businessline.

=if(Rank(aggr(sum(NetValue),BUSINESSLINE))<=3,aggr(Sum(NetValue),BUSINESSLINE))

Chanty4u
MVP
MVP

Please open  your thread in new tab u can able to find the attachments atm.PNG

santiago_respane
Specialist
Specialist

Hi, you need to create a chart, add businessline  and storeid as dimension and then use an expression like this:

if(rank(sum(NetValue))<4,sum(NetValue))

Please let me know if this helps.

Kind regards,

HirisH_V7
Master
Master

Hi,

Check this,

=IF(Rank(Aggr(Sum(NetValue),StoreID,BUSINESSLINE))<4,Sum(NetValue))

HTH,
Hirish

HirisH