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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

design approach for Queries

HI,

I'm new to powerbi, but come from a BI tooling background. Assuming I have a simple star schema,

Fact_Sales, Dim_Date, Dim_Product and to reduce ambiguity all Date and Product records have a Fact_Sales record.

Should I select the 3 tables to import and from what I can see they all get loaded as individual objects and joined together in memory based upon PK/FK relationships or realationships that I manually create OR should I write a SQL select statement that joins all 3 tables together and then Import (seems similar to the MERGE table option).

 

Which one is better for performance. In my head I'm thinking that the first is probably the better solution as Filters on Dimensions will be better as they simple query the Dimensional data in memory and not the entire joined up data set.

 

Any best practice based on experience would be appreciated

 

Thanks

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

I think you've got the right idea in your last paragraph.  If you want to slice the fact table by date or product then having these as separate tables is better.  The Date dimension doesn't have to be imported - it can easily be created in powerbi.

 

There's lots of flexibility in powerbi so if a report designer is skilled in SQL and wants to manipulate data from a sql db (which might be designed in a highly relational format) to build a dimensional model, it's possible.  Of course, the data might already exist in a warehouse so it might not require re-engineering.  Other factors would be : Does the data require cleaning in Power Query?  Are there sufficient skills in M or DAX ?  Is there the required level of access to the db?

 

Writing the SQL to push the query processing to the SQL db would probably be a less flexible approach.

 

 

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

I think you've got the right idea in your last paragraph.  If you want to slice the fact table by date or product then having these as separate tables is better.  The Date dimension doesn't have to be imported - it can easily be created in powerbi.

 

There's lots of flexibility in powerbi so if a report designer is skilled in SQL and wants to manipulate data from a sql db (which might be designed in a highly relational format) to build a dimensional model, it's possible.  Of course, the data might already exist in a warehouse so it might not require re-engineering.  Other factors would be : Does the data require cleaning in Power Query?  Are there sufficient skills in M or DAX ?  Is there the required level of access to the db?

 

Writing the SQL to push the query processing to the SQL db would probably be a less flexible approach.

 

 

Anonymous
Not applicable

Thanks.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors