Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
lalitkgehlot89
Creator II
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
Creator II
Creator II
Author

no attached file found.

lalitkgehlot89
Creator II
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
“Aspire to Inspire before we Expire!”