Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Solved! Go to Solution.
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'
Table'DIM Dependencies'
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
)
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.
Thanks ... works a treat!
Hi,@Anonymous
Thank you for your reply .
You are welcome.
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'
Table'DIM Dependencies'
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
)
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
17 | |
7 | |
7 | |
6 | |
5 |
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |