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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis ( based on another field)

Hi,

I´m trying , using Set Analysis, to filter the information in my table

It´s possible to obtain the sum of the amounts, but only invoices not repeated.

Something like this:

   "Sum({$<DISTINCT Invoice>}Amount)"

Invoice     Amount

1                15

2                35

3                25

2                35

4                15

4                15

5                40

  TOTAL   130



Thanks

Labels (1)
3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

sum({<Invoice={"=count(Invoice)=1"}>}Amount)


talk is cheap, supply exceeds demand
swuehl
Champion III
Champion III

Try

=Sum( Aggr( Only( Amount), Invoice))

But I would rather remodel the model to avoid the duplicate facts.

Not applicable
Author

Thanks!!!!

It works