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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply

Preserve last updated records

Hi

 

In order to keep the last updated records in my report I found 2 techniques:

- one that uses table.buffer in combination with sort and delete double records

- one that uses Group By

 

Now I'm wondering what the advantages or disadvantages are between these two technique and if there are any better solutions?

 

Any thougts?

2 ACCEPTED SOLUTIONS
ZhangKun
Super User
Super User

Table. Buffer is used to cache results. For large tables, Table The Buffer function may slow down the calculation.
All data needs to be traversed whether it is de duplication or grouping. But, if the data source supports query folding (query folding may be interrupted by other operations), grouping is excellent, because grouping operations will be performed on the server instead of locally. However, if you use Table Buffer function to cache data is undoubtedly a very bad decision.
In conclusion, if the data source supports query folding, you should use grouping. I personally feel that there is no difference between other data sources.

View solution in original post

Omid_Motamedise
Super User
Super User

It is all related to your data structure, if the number of records is not that much there is no difference, but if you are faced with too much data, and the number of groups that you want to extract the last record for them is less than around thousand go for Table.Group otherwise use Table.Buffer and Table.Sort technique

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @jochendecraene ,

 

We hope you found the information useful. If the above reply was helpful, please mark it as a solution. thanks.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Omid_Motamedise
Super User
Super User

It is all related to your data structure, if the number of records is not that much there is no difference, but if you are faced with too much data, and the number of groups that you want to extract the last record for them is less than around thousand go for Table.Group otherwise use Table.Buffer and Table.Sort technique

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
ZhangKun
Super User
Super User

Table. Buffer is used to cache results. For large tables, Table The Buffer function may slow down the calculation.
All data needs to be traversed whether it is de duplication or grouping. But, if the data source supports query folding (query folding may be interrupted by other operations), grouping is excellent, because grouping operations will be performed on the server instead of locally. However, if you use Table Buffer function to cache data is undoubtedly a very bad decision.
In conclusion, if the data source supports query folding, you should use grouping. I personally feel that there is no difference between other data sources.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.