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

Using the 1 in set analysis but allowing certain selections

Hello everybody,

Does any know a way in set analysis that allows you to use the 1 identifier, but also allow user selections?

I want to calculate Sales over the full set where the Red flag = 1. I then want users to be able to select a region and this to be included.

Something like

     SUM({<1{RedFlag={1},Region={$}>}Sales)

So when a user selects a region this is included in the sum.

Any ideas?


13 Replies
Anonymous
Not applicable
Author

This should work:

SUM({1<RedFlag={1}, Region=P(Region)>} Sales)

Regards,

Michael


swuehl
MVP
MVP

I can't see what you're saying, but i have lots of fields.

You can let QV do the work to create a list of all fields to clear, have a look into:

Ignore all selections except some specific fields using Set Analysis

Anonymous
Not applicable
Author

Thanks Michael.

I was actually using your other suggestion that you made on another post which involved using a variable and GetFieldSelections

Cheers

Anonymous
Not applicable
Author

Understood..
My suggestion above makes sense only if you actually select a Region.  Later I thought that it is better to use a variable.  Didn't rememebr I'd answered a similar question before... 🙂