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: 
Glynn1969
Contributor II
Contributor II

Count field value based on unique values in a 2nd field

 

Hello i am very new (2days) into Qlik so apologies for basic question and also sorry if i'm in the wrong forum.

i have simplified my data below but in short i want to use an expression in  pivot table to so the salaries for an individual - at the moment my pivot is multiplying my salary data and inflating salaries. 

How can i just count a single salary value per unique name

Name salary   result correct  incorrect
Ann 50,000   Ann 50,000 150,000
Ann 50,000   Brian 45,000 90,000
Ann 50,000   Col 25,000 100,000
Brian 45,000   Dave 60,000 120,000
Brian 45,000        
Col 25,000        
Col 25,000        
Col 25,000        
Col 25,000        
Dave 60,000        
Dave 60,000        
           
Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

Hi, as below.

=Sum(Aggr(Only(salary),Name))

View solution in original post

3 Replies
BrunPierre
Partner - Master
Partner - Master

Hi, as below.

=Sum(Aggr(Only(salary),Name))

Chanty4u
MVP
MVP

Try this

aggr(only(salary), Name)

 

Kushal_Chawda

@Glynn1969   you can simply use below

= max(Salary)