Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Top Vendor Name from City

Dear All,

i want to get Citywise TOP Vendor name which i want to display on Table. i have written a set analysis as below. kindly check and let me know what wrong is there.

1.) getting the citywise, max vendor T/O information.

2.) getting the name of the Vendor from that max value.

=Only( {$<VENDORSHORTNAME={"=(sum( TRADE_VALUE)/vmaxDay))=MAX(AGGR((sum( TRADE_VALUE)/vmaxDay),CITY,VENDORSHORTNAME))"}>} VENDORSHORTNAME)

Thanks & Regards,

Jitendra

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Try FirstSortedValue(Vendor,-Aggr(Sum(Sales),Vendor,City))

View solution in original post

3 Replies
anbu1984
Master III
Master III

Try FirstSortedValue(Vendor,-Aggr(Sum(Sales),Vendor,City))

Not applicable
Author

by below mention syntax i am able to get top turnover

=MAX(AGGR((sum( TRADE_VALUE)),CITY,VENDORSHORTNAME))

Now i want to get the VENDORSHORTNAME from this. means what is the VENDORSHORTNAME of that max turnover

Not applicable
Author

Thanks Anbu Cheliyan