Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |