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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
m4xon
Helper III
Helper III

Which data retrieval option is better from performance and best practices view

Hello All,

 

I have a probably simple question for more advanced users. I create reports based on ssms views. Is it better to get the data to Power BI from that view and later populate it by for example Table.SelectColumns in Power Query to obtain necessary tables or it is better to create these additional tables based on SELECT from that view or maybe avoid using PowerQuery and use DAX only? I would be greatful for your feedback for less experience collegue. 


Summarizing we have following options:

1) Data_Source = Sql.Database("Server", "Database", [Query="SELECT * FROM [dbo].[dboView]"])
2) point 1 + Sql.Database("Server", "Database", [Query="SELECT [Column2], [Column5] FROM [dbo].[dboView]"]) (as many times as we need something)
3) point 1 + Table.SelectColumns ( Data_Source, {"Column2", "Column5"}) (as many times as we need something)

4) point 1 + DAX (as many times as we need something)

 

Thank you in advance

Max

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @m4xon ,

For performance:

Option2 is the best way, only select the columns needed from data source will save query time and memory.

For Practice:

Option3 and Option4 are the same, because DAX operation(delete columns) will also add a step in Power Query. If you maybe use other columns later, choose this way can help you modify steps in Power Query.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @m4xon ,

For performance:

Option2 is the best way, only select the columns needed from data source will save query time and memory.

For Practice:

Option3 and Option4 are the same, because DAX operation(delete columns) will also add a step in Power Query. If you maybe use other columns later, choose this way can help you modify steps in Power Query.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.