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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show value of a dimension in pivot table

Hi,

I have a pivot table with

     - two dimension country (Y axis) and market (X axis)

     - one expression (revenue).

I whant to add the name off the company with the higher revenue for each country/market inside this table.

It will be awesome if I can writ an expression which do this.

Could you give me some help?

Nicolas Carlier

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

FirstSortedValue(Company, -Aggr(Sum(Revenue), Country, Market, Company))

View solution in original post

5 Replies
sunny_talwar

Where do you imagine to see this information on the pivot table? a second column?

Not applicable
Author

Yes on a second column

something like this

Capture.PNG

sunny_talwar

May be like this:

FirstSortedValue(Company, -Aggr(Sum(Revenue), Country, Market, Company))

sunny_talwar

Or you can try this:

Concat(Aggr(If(Sum(Revenue) = Max(TOTAL <Country, Market> Aggr(Sum(Revenue), Country, Market, Company)), Company), Country, Market, Company), ', ')

Not applicable
Author

That works perfectly well!

Thanks a lot !