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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Conditional

Please see attached example. I'm able to create two columns based on selected values, but I'm unable to create the correct conditional sum.... Please advise...

3 Replies
swuehl
MVP
MVP

Not quite sure what you are looking for - a pivot table?

Article Origen Forecast 2Forecast 3
1 15081488
2 75082
3 9848
4 395
5 574-
6 8746
Anonymous
Not applicable
Author

Not exactly, as I need to add more dimensions... i.e. customers... It's just about the formula of the amounts:

I used Sum ({<Origen = subfield(GetFieldSelections(Origen,'||'),'||',1)>}[Amount]) but it's gives an error.

subfield(GetFieldSelections(Origen,'||'),'||',1) gives the first selected origen, but I'm not able to get the conditional sum correct using this value...

Anonymous
Not applicable
Author

Got it! It's:

Sum ({<Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}>}[Amount])

Thanks Stefan!