Forum Discussion
Sunbed1060
May 07, 2024Copper Contributor
(Dataverse) Selective Power query?
Hi,
I am new to using Dataverse and power query.
I am currently use two excel files - one for material data source and other for partlist.
So far, no trouble, but with growing number of materials.
I want to change the excel data source to Dataverse.
Background:
- Using an excel file as main material data source.
- Other excel file uses XLOOKUP to find the item code to pull item details.
- Material data is growing (so far 5,000 rows).
- Thinking to change the data source to Dataverse.
Questions:
- I understand by creating query connection - the data needs to load into the target file then I can use XLOOKUP to query table.
- But I want it to selective - instead of all 5,000 data to be pulled into file.
- Can the power query be selective based on the item code that was used on the partlist?
*like below image
Thank you in an advance.
You may filter on partlist
as
let Result = Table.SelectRows(Source, each List.Contains( Partlist[ID], [ID] )) in Result
You may filter on partlist
as
let Result = Table.SelectRows(Source, each List.Contains( Partlist[ID], [ID] )) in Result
- Sunbed1060Copper ContributorThank you Sergei,
If I may ask, where do I insert the above code?In Power Query editor you may open Advanced Editor to modify M-script code, or for the concrete step you may modify the code in formula bar of the PQ editor.