Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
theboss-123
Creator II
Creator II

Calculate Sum Of Curent Selection Item

Hello ,

I would like to calculate using set analysis the selected item but when i put the formula below i got sum of all records

 

sum({$<SUpplier={"*"}>} Purchase)

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

Not sure why you're using set analysis at all. The sum of the currently selected values is Sum(Purchase) with no set, or if you want to spell it out for some reason, sum({$} Purchase). Adding Supplier=* is telling Qlik to sum all suppliers ignoring the current selection (and any object dimensions).

View solution in original post

1 Reply
Or
MVP
MVP

Not sure why you're using set analysis at all. The sum of the currently selected values is Sum(Purchase) with no set, or if you want to spell it out for some reason, sum({$} Purchase). Adding Supplier=* is telling Qlik to sum all suppliers ignoring the current selection (and any object dimensions).