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
Good morning
I have two tables:
- One of them contains a single column with names (namesT)
- The other table (data) has more data and among them a column with more than one name per column (name).
I would like to know how I can make a filter so that by selecting a value from the table (namesT), it takes out all the rows of the table (data) that contain that information.
Solved! Go to Solution.
Hi @Syndicate_Admin ,
I suggest you to Split Column in Power Query Editor.
My Sample:
I add an index column and then split [NameT] column by comma,
I suggest you to remove or inactive the relationship between two tables.
Filter Measure =
VAR _SELECTVALUE =
VALUES ( 'Table'[NameT] )
VAR _Counttable1 =
COUNTROWS ( _SELECTVALUE )
VAR _Counttable2 =
CALCULATE (
COUNTROWS ( 'Table (2)' ),
FILTER ( 'Table (2)', [NameT] IN _SELECTVALUE )
)
RETURN
IF ( _Counttable1 = _Counttable2, 1, 0 )
Add this measure into visual level filter and set it to show items when value =1.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
A relationship already exists, and it doesn't work.
The contents of the T-names table would be as follows:
| Nerea |
| Pedro |
| Jaime |
| Silvia |
| Juan |
And the name cell of the data table would look like this:
| Juan,Silvia |
Hi @Syndicate_Admin ,
I suggest you to Split Column in Power Query Editor.
My Sample:
I add an index column and then split [NameT] column by comma,
I suggest you to remove or inactive the relationship between two tables.
Filter Measure =
VAR _SELECTVALUE =
VALUES ( 'Table'[NameT] )
VAR _Counttable1 =
COUNTROWS ( _SELECTVALUE )
VAR _Counttable2 =
CALCULATE (
COUNTROWS ( 'Table (2)' ),
FILTER ( 'Table (2)', [NameT] IN _SELECTVALUE )
)
RETURN
IF ( _Counttable1 = _Counttable2, 1, 0 )
Add this measure into visual level filter and set it to show items when value =1.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It should work if you create relationship between tables (namesT and data)
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 |
|---|---|
| 27 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 62 | |
| 44 | |
| 42 | |
| 37 | |
| 37 |