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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
cliff_clayman
Creator II
Creator II

Sum Distinct Aggr value

I have a field (JobID) that has multiple records for various other data fields.  One of the fields (JobCost) is displayed multiply times, but I just want to get a single value for it.  How can I get the distinct JobID and get just a single value for the JobCost?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe like

=Sum(Aggr(Only(JobCost),JobID))

But it would probably better to remodel your data / change your load script to not duplicate your facts.

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Maybe like

=Sum(Aggr(Only(JobCost),JobID))

But it would probably better to remodel your data / change your load script to not duplicate your facts.

cliff_clayman
Creator II
Creator II
Author

Yes. that is what I used and it worked.  The data model stinks...I know.