Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
timmy
Partner - Contributor III
Partner - Contributor III

Sum Distinct problem

Hey,

I have a problem with this formula:

sum(distint Quata)

The dimension in the tabel is Salesperson and the problem is that we have two the same Quata's

Example:

SalesP1 650
SalesP2 650

If you take the formula sum(Distinct Quata) for this example you get 650 as total...

How can i solve this?

greetings

1 Solution

Accepted Solutions
Not applicable

Hi,

My suggest:

SUM(TOTAL AGGR(SUM(DISTINCT Quata), Salesperson))

View solution in original post

3 Replies
Not applicable

Hi,

My suggest:

SUM(TOTAL AGGR(SUM(DISTINCT Quata), Salesperson))

Not applicable

That's right, because of DISTINCT. It group the data first and does the SUM() after that. Use sum(Quata) to get 1300.

timmy
Partner - Contributor III
Partner - Contributor III
Author

This is the correct formula but thanks for the help!

=

SUM(AGGR(SUM(DISTINCT Quata), [SalesPerson],Quarter))