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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Filter two different tables

Hi,

I need some help if it is possible.

 

I have a table with data like this

 

Table: data

 

dataNameinfo2info3policyName 
info1.1info1.2info1.3policy1,policy2,policy3 
info2.1info2.2info2.3policy2,policy3,policy4 

 

And I have another table.

 

Table: policyNames

policyName
policy1
policy2
policy3
policy4

 

And I need to filter selecting from the second one and see how many rows from the table data or the column dataName have in them the selected policy.

 

Thank you in advance

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, right click on the PolicyName column of the Data Table and select Split Column > By delimiter.  Select comma as the delimiter and expand Advanced Options.  Select Rows there.  Right click on the column and sleect Trim.  Create a relationship (Many to One and Single) from the PolicyName column to the PolicyName column of the PolicyNames Table.  To your Table visual, drag the PolicyName column from the PolicyNames Table and write this measure

Measure = countrows(Data)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.