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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
briguin
Helper I
Helper I

Importing a Star Schema source - How do I limit returned records

In Power BI, I'm trying to import a Star Schema source and it is a table#1 of 100% integer keys.

In order to limit the dataset I'm having to manually lookup all the key translations to user friendly names.

 

I want to retrieve only data for Location Key1 = 7729 . I may have a list of 100 keys to pull and do not want to manually create a M Step to filter each key.

 

Is the scenario below even possible:

I want to create a Table#2 that contains all the Key values I want to filter within Table#1.

Can I lookup values in Table#2 and use that within the M query to filter Table#1?

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Absolutely. I would use the List.Contains() function here. Everything in List 1 would be filtered by List 2. This is all with in a Table.SelectRows (filter) step.

I do this so often I wrote a blog post showing you each step you need to take and explained it in full detail here: Using List.Contains To Filter Dimension Tables — ehansalytics




Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

Absolutely. I would use the List.Contains() function here. Everything in List 1 would be filtered by List 2. This is all with in a Table.SelectRows (filter) step.

I do this so often I wrote a blog post showing you each step you need to take and explained it in full detail here: Using List.Contains To Filter Dimension Tables — ehansalytics




Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.