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
kjani
Helper I
Helper I

Build the model using sample data

I want to build a Power BI report and need to connect to two databases. The connections are very slow and it's difficult to play with the data. I would like to get a sample of the data, build the report and then connect to live databases. What's the best way to accomplish this? Is there a way to import a sanpshot of data from SQL Server database? I am not in IT, so need help how do I build the report first using small set of data and then scale. Thanks in advance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kjani ,

Avoid by directional join, prefer star schema 

you need to check with sql profile

https://radacad.com/directquery-connection-in-power-bi-how-does-it-work-limitations-and-advantages

 

Query reduction

https://www.youtube.com/watch?v=4kVw0eaz5Ws

 

Try composite model

https://community.powerbi.com/t5/MBAS-Gallery/Aggregation-and-composite-model-Microsoft-Power-BI-fas...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@kjani ,

Avoid by directional join, prefer star schema 

you need to check with sql profile

https://radacad.com/directquery-connection-in-power-bi-how-does-it-work-limitations-and-advantages

 

Query reduction

https://www.youtube.com/watch?v=4kVw0eaz5Ws

 

Try composite model

https://community.powerbi.com/t5/MBAS-Gallery/Aggregation-and-composite-model-Microsoft-Power-BI-fas...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
mahoneypat
Microsoft Employee
Microsoft Employee

Here is a tip that may help.  Make your queries, and in one of the first steps add a Keep Rows step and keep 100,1000, or whatever you think is representative.  You can build out your model, make measures/visuals, etc.  When you are done, just delete the Keep Rows step to load all the data.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.