This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
Need your help creating a measure which will be based on a slicer with multiple selection
Eg:
We have one disconnected "Labels" table where we have list of values as shown below and which will be used as a slicer.
| Labels |
| Tag1 |
| dynamicparam |
| core |
| custom |
| businessflow |
| subflow |
I have another table "Function" which contains these labels as comma separated as shown below
| Name | Lables |
| Function1 | Tag1,dynamicparam,core |
| Function2 | Tag1,businessflow,core |
| Function3 | custom,dynamicparam |
| Function4 | custom,dynamicparam |
| Function5 | custom,businessflow,subflow |
Need to create a measure which will be able to mark 1,0 if the labels selected from slicer "Label" is present in comma separated values. User can select multiple labels as well.
For example, If I select "businessflow" and "custom" from the list then result should be
| Name | Lables | Measure |
| Function1 | Tag1,dynamicparam,core | 0 |
| Function2 | Tag1,businessflow,core | 1 |
| Function3 | custom,dynamicparam | 1 |
| Function4 | custom,dynamicparam | 1 |
| Function5 | custom,businessflow,subflow | 1 |
If I select "businessflow" from the list then result should be
| Name | Lables | Measure |
| Function1 | Tag1,dynamicparam,core | 0 |
| Function2 | Tag1,businessflow,core | 1 |
| Function3 | custom,dynamicparam | 0 |
| Function4 | custom,dynamicparam | 0 |
| Function5 | custom,businessflow,subflow | 1 |
This measure will be used as a filter for other visuals
Solved! Go to Solution.
Hi @Deemo
you may try
Measure1 =
VAR CurrentLabel =
SELECTEDVALUE ( Function[Labels] )
RETURN
NOT ISEMPTY (
FILTER (
ALLSELECTED ( Labels ),
CONTAINSSTRING ( CurrentLabel, Labels[Labels] )
)
)
Hi @Deemo
you may try
Measure1 =
VAR CurrentLabel =
SELECTEDVALUE ( Function[Labels] )
RETURN
NOT ISEMPTY (
FILTER (
ALLSELECTED ( Labels ),
CONTAINSSTRING ( CurrentLabel, Labels[Labels] )
)
)
Thank you so much.. It does work 🙂 I am unable to understand the DAX though .. Isn't selectedvalue is for single selection?
Yes. That is the value of the current filter context which we use it to filter ALLSELCTED ( Labels )
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |