I am trying to explore/learn ways to better query data through Power Query for use in Power BI.
I am using 3 data sources
Source A. Basic information of Principals (Cast & Crew of Media) - Contains Name ID
Source B. Media with their associated Principals - Contains Name ID & Film ID
Source C. Basic information of Media - Contains Film ID
My proposed flow within Power Query is the following,
- Manually filter source A by the desired names
- Reference source A and convert to a List of Name IDs
- Filter source B by List of Name IDs
- Reference source B and convert to a list of Film IDs
- Filter source C by list of Film IDs
My thought is that once this is set up, I can change the names in step 1 and the rest would flow with a data refresh.
The filtering I am doing through a List.Contains & List.Buffer
i.e. “= Table.SelectRows(#“Renamed Columns”, each List.Contains(List.Buffer(List_NameIDs),[Name ID]))”
It works, but the dataset takes an extremely long time to load. Is there a better way to achieve this?