Forum Discussion
How to output multiple selections on a single chart using a switch statement
- 8 years ago
MeasureQuality = IF(Selected value('Metric selection'[Metric]="ALL"); Quality[TotalAvgQualityperAgent];
Blank()
)Then include an "ALL" button aswell?
I dont know if this will work but you could try something like this:
MeasureQuality =
IF(Selected value('Metric selection'[Metric]);
Blank();
Quality[TotalAvgQualityperAgent]
)This should return blank() if metric selection is filtered and otherwise show the Quality value.
Create one measure for each value and include them in the linechart.
Br,
J
Thank you. This logically sounds promising. However I am receiving error when adding both to the values pane;
Ive tried changing the blank() to 0 but this still prompts same error. Any ideas?
- tex6288 years ago
Community Champion
MeasureQuality = IF(Selected value('Metric selection'[Metric]<>Blank()); Blank(); Quality[TotalAvgQualityperAgent] )Try this! :)
- tex6288 years ago
Community Champion
Jesus, im not paying attention... like this instead:
MeasureQuality = IF(Selected value('Metric selection'[Metric])<>Blank(); Blank(); Quality[TotalAvgQualityperAgent] )- Anonymous8 years agoNot applicable
lol yep I did sus it, hence I deleted my post.
So looks like it tries to pass in multple values from 'Selection' when not choosing anything. See below;
I would have thought this would default to 0 if no value/selection was chosen as per my switch statement above. Any ideas?
(btw thanks for all your help thus far)