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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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