Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

sum of amount on distinct counts


I have account numbers like

AC NO   AMOUNT

1            50

1            50

2          100

2          100

3           100

I would like to have a sum on distinct account numbers, for ex: in above scenario i would like to have a total as 250, sum of amount for the

distinct accounts. Please help me.

Thanks,

Abhi

3 Replies
swuehl
MVP
MVP

Maybe

=sum( aggr( only(AMOUNT), [AC NO]))

MK_QSL
MVP
MVP

Try below

=SUM(AGGR(DISTINCT AMOUNT, [AC NO]))

Not applicable
Author

Check out the attached file hope it helps.

Thanks

AJ