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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue in set analysis

Dear All,

My requirement is to find CITYwise,Top  VENDORSHORTNAME according to sum(trade_value) and then count of LOCATIONID

i have create a Variable with following expression : vTopVendorCitywise: FirstSortedValue(VENDORSHORTNAME,-aggr(Sum(TRADE_VALUE),VENDORSHORTNAME,CITY))

below is the expression in using in Straight table with Dimension CIty Citywise_TopVendor_traders.png

=Count( DISTINCT {<VENDORSHORTNAME={'$(=vTopVendorCitywise)'}>} LOCATIONID)

Please let me know what wrong i am doing in this

1 Reply
hariprasadqv
Creator III
Creator III

Use Rank function and Max may give you the solutions.

Ex: Max(sum(Tradevalue),Vendorcity) like this.