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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

Max of sales help

Hi Experts,

Can any one please help me on below requirement.

In the below Pivot Table I have to show only Department wise Max sales employee details only instead of all the  other employees.

Current Table:

input.png

Expected Table:

Expected output.png

I have used the below expression for Sales. please help me to modify the below expression for max of sales

Sum(${<MonthDiff={0}>}Sales)

Thanks in advance

10 Replies
Channa
Specialist III
Specialist III

max(Aggr(SUM(salary),department,employee))

Channa
jonathandienst
Partner - Champion III
Partner - Champion III

Use Department as dimension, and the expressions:

=FirstSortedValue(Employee, -Sales)
=Max(Sales)

For max employee and sales value.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
mahitham
Creator II
Creator II
Author

Hi @Channa 

I have tried your solution but its not working.

mahitham
Creator II
Creator II
Author

Hi @jonathandienst 

I have tried your solution but its not working.

mahitham
Creator II
Creator II
Author

Hi @Channa 

For Measure I have used this expression Sum(${<MonthDiff={0}>}Sales). Here MonthDiff={0} is mandatory to see the current month values. same like below created a Pivot Table in Qlik.

input.png

Here requirement is Department wise Highest Sales employee name and his sale amount only need to show.

Please help me on this.

 

Expected output.png

 

Channa
Specialist III
Specialist III

in this case you need to add condition instead of sales add your expression in place of sames

try both

 

 

=FirstSortedValue(Employee, -Sales)
=Max(Sales)

Channa
mahitham
Creator II
Creator II
Author

Hi @Channa 

 

By adding set analysis expression in Firstsortedvalue getting error in expression.

Channa
Specialist III
Specialist III

take the qvf

 

send me ur set expression i will try to update

Channa
mahitham
Creator II
Creator II
Author

hi @Channa 

Thanks for your help.

Actually I was not explained the requirement clearly.In my app why firstsortedvalue is not working I have found.

Actually here I have considered dummy data for explaining requirement.

Could you please check the below thread. Actually I have the ID Field based on that I have to consider the max of month count. In  department wise which employee count is high(based on id field) his name and count need to show in Table.

Could you please help me the below thread. 

 

https://community.qlik.com/t5/New-to-QlikView/Max-of-trades-help/m-p/1553454#M371273