The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Community,
Let's say I have slicer that allow multiple selection. I know that selectedvalue() works when the user just select one option, but, Is it possible to use dax to separate each selection from the others so I could store them on separate variables?. I'm looking for something like this:
VAR SelectedOption1 = selectedvalue()
VAR SelectedOption2 = someotherfunction()
...
VAR SelectedOptionN = someotherfunction()
Thanks for reading and sharing your knowledge.
@jcamargo SELECTEDVALUE returns BLANK by default when multiple values are selected. You could grab all of the values selected by targeting the table where your slicer is located using something like SELECTCOLUMNS or DISTINCT. That would return a table of values in a VAR and you could do some stuff with it after that. Not entirely sure what you are going for exactly so hard to be more specific.
User | Count |
---|---|
26 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
30 | |
15 | |
12 | |
12 | |
7 |