
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set analysis - allow only one field to change expression result
I know how to use $ and 1 in set analysis. But how do I make it so that only certain fields can alter the calculation. i.e. If the user selects Region, the value changes, but if they select Product it doesn't.
- Tags:
- new_to_qlikview
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may use like below. Below expression will ignore the value of Product selected.
sum({<Product= >} SalesAmount)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may use like below. Below expression will ignore the value of Product selected.
sum({<Product= >} SalesAmount)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe like
=sum({1<Region = $::Region>} VALUE)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By pass your selection or ignore the selection like
Sum({<Year=,Month=,Product= >} Value)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to do the inverse? So instead of telling it what fields to ignore, tell it what fields to not ignore?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please see Swuehl's answer. sum({1<Region = $::Region>} VALUE)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can try this:
sum({1<REGION = {$(=GetFieldSelections(REGION))}> sales}
This will alter the calculation only if one or several regions are selected.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you could use alternate states
