Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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.