Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi every one ,
Im working on this same issue , Solved: Re: Single slicer for multiple values in row - Microsoft Fabric Community
but the solution with below DAX is not working , im stuck can anyone help me please!
_Filter =
IF (
CONTAINSSTRING (
MAX ( 'Beer Data'[Type] ),
SELECTEDVALUE ( 'Beer Data_duplicate'[Type] )
),
1,
0
)
Solved! Go to Solution.
Hi, @faheem_Latif_BI
Based on your description, I have created these sample data below:
First, we need to go inside PowerQuery and extract our type, removing the symbols:
Open the PowerQuery Advanced Editor and use the following M code:
SplitColumn = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Type", Splitter.SplitTextByDelimiter(";#", QuoteStyle.Csv), type text}}), "Type"),
#"Removed Duplicates" = Table.Distinct(SplitColumn)
Note that you changed #“Changed Type” to the name of the step you took in the previous step:
Get the table below:
Close and apply:
Use the following DAX expression to create a new measure in Power BI:
Filter =
VAR _table1 = SELECTCOLUMNS('Table','Table'[Type])
VAR _table2 = SELECTCOLUMNS('Table (2)','Table (2)'[Type])
VAR _table3 = FILTER(ADDCOLUMNS(CROSSJOIN(_table1,_table2),"contain?",IF(FIND('Table (2)'[Type],'Table'[Type],1
,0)<>0,1,0)),[contain?]=1)
VAR _current_row = SELECTEDVALUE('Table'[Type])
RETURN MAXX(FILTER(_table3,'Table'[Type]=_current_row),[contain?])
Create a new slicer using the type column of Table (2):
Use the table table to create a new visual object and in the filter panel, place the measure at the visual level:
The results are as follows:
I have provided the PBIX file used in this instance below.
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @faheem_Latif_BI
Based on your description, I have created these sample data below:
First, we need to go inside PowerQuery and extract our type, removing the symbols:
Open the PowerQuery Advanced Editor and use the following M code:
SplitColumn = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Type", Splitter.SplitTextByDelimiter(";#", QuoteStyle.Csv), type text}}), "Type"),
#"Removed Duplicates" = Table.Distinct(SplitColumn)
Note that you changed #“Changed Type” to the name of the step you took in the previous step:
Get the table below:
Close and apply:
Use the following DAX expression to create a new measure in Power BI:
Filter =
VAR _table1 = SELECTCOLUMNS('Table','Table'[Type])
VAR _table2 = SELECTCOLUMNS('Table (2)','Table (2)'[Type])
VAR _table3 = FILTER(ADDCOLUMNS(CROSSJOIN(_table1,_table2),"contain?",IF(FIND('Table (2)'[Type],'Table'[Type],1
,0)<>0,1,0)),[contain?]=1)
VAR _current_row = SELECTEDVALUE('Table'[Type])
RETURN MAXX(FILTER(_table3,'Table'[Type]=_current_row),[contain?])
Create a new slicer using the type column of Table (2):
Use the table table to create a new visual object and in the filter panel, place the measure at the visual level:
The results are as follows:
I have provided the PBIX file used in this instance below.
Best Regards
Jianpeng Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 25 | |
| 25 | |
| 18 |
| User | Count |
|---|---|
| 54 | |
| 50 | |
| 43 | |
| 35 | |
| 32 |