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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.