Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Multi-Select slicer DAX

Hi All,

I'm a little stuck on somthing that should be quire easy.

I have a DIM table that I would filter a FACT table by.

The code below works fine for a single selection, but obviously wont work for a multi-select.

I have tried using ALLSELECTES & CONCATENATEX which connectly returns the selected list, but I still have the problem of:

<List> in Values (table[column])

Any suggestions on how to change the fomula below to support mulit-select?

 

Dependencies Filter # = if (
    SELECTEDVALUE('DIM Dependencies'[Name]) in values('FACT Dependencies'[Source Name]) ||
    SELECTEDVALUE('DIM Dependencies'[Name]) in values('FACT Dependencies'[Target Name]), 1, 0 )
 
Cheers,
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@Anonymous I am glad to help you.
If you want to achieve the effect of slicer multi-select, as you said, you can try to use the CONCATENATEX function to achieve, by determining whether the field in the form is within the string composed of all the options of the slicer to control the return result, the following is my test, I hope it can give you help.
table'FACT Dependencies'

vjtianmsft_0-1721013752126.png

Table'DIM Dependencies'

vjtianmsft_1-1721013798397.png

vjtianmsft_2-1721013851227.png

 

M_result = 
VAR source_value=MAX('FACT Dependencies'[Source Name])
VAR target_value=MAX('FACT Dependencies'[Target Name])
VAR m_allselect=
CONCATENATEX(
    VALUES('DIM Dependencies'[Name]),
    [Name],
    ""
)
RETURN IF( CONTAINSSTRING(m_allselect,source_value)||CONTAINSSTRING(m_allselect,target_value),1,0
)

 

vjtianmsft_3-1721013870506.png

 



I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks ... works a treat!

Anonymous
Not applicable

Hi,@Anonymous 
Thank you for your reply .
You are welcome.

Anonymous
Not applicable

Hi,@Anonymous I am glad to help you.
If you want to achieve the effect of slicer multi-select, as you said, you can try to use the CONCATENATEX function to achieve, by determining whether the field in the form is within the string composed of all the options of the slicer to control the return result, the following is my test, I hope it can give you help.
table'FACT Dependencies'

vjtianmsft_0-1721013752126.png

Table'DIM Dependencies'

vjtianmsft_1-1721013798397.png

vjtianmsft_2-1721013851227.png

 

M_result = 
VAR source_value=MAX('FACT Dependencies'[Source Name])
VAR target_value=MAX('FACT Dependencies'[Target Name])
VAR m_allselect=
CONCATENATEX(
    VALUES('DIM Dependencies'[Name]),
    [Name],
    ""
)
RETURN IF( CONTAINSSTRING(m_allselect,source_value)||CONTAINSSTRING(m_allselect,target_value),1,0
)

 

vjtianmsft_3-1721013870506.png

 



I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

Best Regards,

Carson Jian,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.