Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Georgy_Paul
Contributor II
Contributor II

Table to show product with max sales

Hi,

Is it possible to create a table with country as row and corresponding product name with max sales. In a nutshell, is it possible for the measure to show a text ?

Labels (2)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

YES. Try like:

Dimension : Country

Exp : FirstSortedValue(Product,  -Aggr(Sum(Sales), Country, Product))

View solution in original post

2 Replies
tresesco
MVP
MVP

YES. Try like:

Dimension : Country

Exp : FirstSortedValue(Product,  -Aggr(Sum(Sales), Country, Product))

Georgy_Paul
Contributor II
Contributor II
Author

Thanks !