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
Anonymous
Not applicable

How to remove data efficiently

Dear Community,

I just started with Power BI- Query and I do have some troubles by removing columns and unnecessary data.

My question: What is the best way to remove data when it comes to data efficiency?

1) via removing the column?

2) by “Choose columns” and only select the columns i may need ?

3) maybe with a Measure (if possible?)?

 

I am trying to make the report as efficient as possible.

 

Thank you very much in advance.

2 ACCEPTED SOLUTIONS
Vijay_A_Verma
Super User
Super User

Whether you use Select columns or remove columns, it will use Table.SelectColumn function only. So, both are same as they are executing the same statements. So 1 and 2 are same, no difference.

DAX will not remove a column. Measures can produce final result values. 

In general, measures are faster than PQ (exceptions aside). But in case of calculated columns, PQ is faster (exceptions aside).

 

In Power BI, you need to reduce the size of rectangle (rows * columns) as much as possible. Hence, before doing any transformations or calculations, remove as many columns as possible to reduce the size of rectangle. You should also filter out as many rows as possible.

Then you can decide whether to use DAX or PQ as per your need. 

View solution in original post

Anonymous
Not applicable

Normally, i use 2) by “Choose columns” and only select the columns i may need ? because in this approach, it is easy and quick for you to choose columns to keep when you have so many columns. In this option, the top serach bar also can help you find the columns fast. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Dear @Anonymous , @Vijay_A_Verma,

 

Thanks for your reply and support 🙂

 

Best regards,

Anonymous
Not applicable

Normally, i use 2) by “Choose columns” and only select the columns i may need ? because in this approach, it is easy and quick for you to choose columns to keep when you have so many columns. In this option, the top serach bar also can help you find the columns fast. 

Vijay_A_Verma
Super User
Super User

Whether you use Select columns or remove columns, it will use Table.SelectColumn function only. So, both are same as they are executing the same statements. So 1 and 2 are same, no difference.

DAX will not remove a column. Measures can produce final result values. 

In general, measures are faster than PQ (exceptions aside). But in case of calculated columns, PQ is faster (exceptions aside).

 

In Power BI, you need to reduce the size of rectangle (rows * columns) as much as possible. Hence, before doing any transformations or calculations, remove as many columns as possible to reduce the size of rectangle. You should also filter out as many rows as possible.

Then you can decide whether to use DAX or PQ as per your need. 

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.

Top Solution Authors
Top Kudoed Authors