Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
satishkurra
Specialist II
Specialist II

Display only the Sales with highest SL's

Hi

In the below data, i need to display only SL's with highest Sales.

For example, INDIA has highest SL for SL3. I should be displaying only 1500 against INDIA and SL3

In the same way USA has highest SL for SL1. I should be displaying only 3000 against USA and SL1

I'm trying to achieve this in a Pivot Table by dragging the SL column to show column wise...

LOAD * Inline [

Country,SL,Sales

INDIA,SL1,1000

INDIA,SL2,900

INDIA,SL3,1500

USA,SL1,3000

USA,SL2,1000

USA,SL3,2000 ];

Can someone help me on the same?

Thanks

Satish

1 Solution

Accepted Solutions
sunny_talwar

Or this where expression is Max(Sales) instead of Sum(Sales)

Capture.PNG

View solution in original post

3 Replies
satishkurra
Specialist II
Specialist II
Author

In b/w i'm using Dimension 1 as Country, Dimension 2 as =FirstSortedValue(SL, - aggr( distinct  sum(Sales),SL ) )

and expression as Sum(Sales)

sunny_talwar

How about using two expression and one dimension in a straight table?

Capture.PNG

sunny_talwar

Or this where expression is Max(Sales) instead of Sum(Sales)

Capture.PNG