
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to switch a Master Measure in chart, based on pressing a button?
Hi,
Is it possible to switch a Master Measure in a chart, based on pressing a button?
A Master Measure is computed based on an expression using specific fields. Users want to have the flexibility of dinamically changing the way values are calculated in a chart. My plan is to have a button that changes the value of a variable (either 1 or 0), then based on the value of the variable switch the Master Measure being used in the chart.
Is that possible in QlikSense?
Thanks.
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I do things like in pretty much every app.
With Variables and if statements you can dynamically change Master measures, values being feed in to set expressions or even dimension used with the set analysis.
In you case you express would be something like
IF( $(variable) = 1, [Master Measure 1], [Master Measure 2])


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I do things like in pretty much every app.
With Variables and if statements you can dynamically change Master measures, values being feed in to set expressions or even dimension used with the set analysis.
In you case you express would be something like
IF( $(variable) = 1, [Master Measure 1], [Master Measure 2])

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually, I put the if statement in the Master Measurement definition, based on Mark6505's suggestion. That did what I intended to do.
Thanks!
