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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
m4xon
Helper II
Helper II

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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