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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
akhaliq7
Post Prodigy
Post Prodigy

After setting up my star schema I merge the tables to filter the rows using inner joins

After I set up my star schema I noticed that my fields in my dim tables when placed as page level filters have way too many values some that do not exist in my fact table. To tackle this I go back to power query and I do inner joins to reduce the number of rows being returned in my dim tables. My question is, is this good practice, if not is there a better solution.

 

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

You can do it that way and that is perfectly acceptable. If you have less than 1,000 things to filter, this artcle explains a different way to do it. Using List.Contains To Filter Dimension Tables — ehansalytics

You can also create a new measure in your model called [Fact Table Record Count] that would simply be COUNTROWS('Your Fact Table'). You can then add that measure to your visuals (slicers for example) and set that measure to not be blank in the filter pane. Even if you prefiter the data at the source or in Power Query, I still do this. That way when one set of data is filtered from Slicer A, Slicer B is automatically filtered for relevent data in your fact table.

edhans_0-1647368015426.png

 



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

3 REPLIES 3
edhans
Super User
Super User

You can do it that way and that is perfectly acceptable. If you have less than 1,000 things to filter, this artcle explains a different way to do it. Using List.Contains To Filter Dimension Tables — ehansalytics

You can also create a new measure in your model called [Fact Table Record Count] that would simply be COUNTROWS('Your Fact Table'). You can then add that measure to your visuals (slicers for example) and set that measure to not be blank in the filter pane. Even if you prefiter the data at the source or in Power Query, I still do this. That way when one set of data is filtered from Slicer A, Slicer B is automatically filtered for relevent data in your fact table.

edhans_0-1647368015426.png

 



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

Thanks ill try both the ways, but the problem i am getting using merging is performance related issues.

Merging in Power Query can bog down with millions of records or with a lot of steps before/after the merge. So I feel your pain.



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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors