March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a question regarding a problem in power query M
Lets say I have table A with multiple projet
a-bc
a-et,
h-gf,
c-df,
a-2d,
And I have a table B with project prefix
a,
d,
c,
I would like to filter the Table A with Table B. Since I have multiple table, I would only be required to change table B (add more prefix or remove) instead of going in each table and put a filter with "startswith".
After filtering, the Table A would look like this
a-bc,
a-et,
c-df,
a-2d,
Thank you !
Solved! Go to Solution.
Hi @Anonymous
Download sample PBIX file with solution code
Set up both tables and load into Power Query.
You can then filter the Projects table with the Prefix table with this line
= Table.SelectRows(Source, each List.ContainsAny(Text.ToList(Text.Start([Project],1)), Prefix[Prefix]))
Regards
Phil
Proud to be a Super User!
Hi @Anonymous
Download sample PBIX file with solution code
Set up both tables and load into Power Query.
You can then filter the Projects table with the Prefix table with this line
= Table.SelectRows(Source, each List.ContainsAny(Text.ToList(Text.Start([Project],1)), Prefix[Prefix]))
Regards
Phil
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
16 | |
13 | |
13 | |
9 |
User | Count |
---|---|
36 | |
31 | |
20 | |
19 | |
17 |