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.
I have two tables:
Table A with a list of identifiers, nothing more.
Table B with a list of TEXT queries.
I want to add a column to Table A, that counts how many entries in Table B that contains the identifier (from Table A).
Does this make sense?
How can I do this in power query, in Table A?
Is this even a good way to get this done? Should I be doing this in some other way?
I can't really think of a way to link the tables as Table B is all dynamic free text query logs that MIGHT contain the identifiers from Table A (zero or many times).
Solved! Go to Solution.
if the amount of data is fairly small, you can brute force it:
Before you try this approach, calculate the number of records the cross join produces ([#Rows TableA] * [# Rows TableB]). If this number is huge (hundreds of millions of rows) this is not going to work.
if the amount of data is fairly small, you can brute force it:
Before you try this approach, calculate the number of records the cross join produces ([#Rows TableA] * [# Rows TableB]). If this number is huge (hundreds of millions of rows) this is not going to work.
Need the sample data for both the tables to provide the right solution.
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 |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |