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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ArvindJha
Helper I
Helper I

Power BI M-QUERY

Hello Team,

 

Data size is 32 MB , my logic loads while data size is 6 MB but keeps n loading forever with 32 MB data.

When i checked step by step it happens at grouping operation

#"Grouped Rows" = Table.Group( #"BufferTable", {"SUBID"}, {{"TRANID", each List.Max([TRANID]), type nullable number}})

 

To resolve the same i also introduced BufferTable before the above step

#"BufferTable" = Table.Buffer(previous_action)

still it seems to load forever.

 

any ways it can be optimized

 

Thanks

6 REPLIES 6
v-xinruzhu-msft
Community Support
Community Support

Hi,

Thanks for the solution danextian  and bhanu_gautam  offered, and i want to offer some more information for user to refer to.

hello @ArvindJha , based on your descriotion, Before grouping, you can reduce the size of your data, then filter out the required rows based on the conditions and remove the unnecessary columns. You can check the link, which provides some methods to optimize performance.

Optimization guide for Power BI - Power BI | Microsoft Learn

 

Best Regards!

Yolo Zhu

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

thanks for the response , did the above steps have kept only 2 columns , removed duplicates and doing group by still very slow

danextian
Super User
Super User

I'm thinking your subid has quite a lot of distinct values.

Try:

  • Remove all columns except TRANID and SUBID
  • Sort it by TRANID in descending order
  • Aapply Table.Buffer
  • Remove duplicates on SUBID









Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

thanks for the response , tried the above steps still is slow , works fast with less data

This is when you'll want to consider moving the ETL upstream. You can use several dataflows and apply extra transformation in Power Query to the output of those dataflows. Just take note that, referencing an external query requires a computed entity which is a premium-only feature so no merging of queries within the same dataflow. Referencing another dataflow also requires premium.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
bhanu_gautam
Super User
Super User

@ArvindJha , Try using 

 

let
Source = previous_action,
BufferTable = Table.Buffer(Source),
GroupedRows = Table.AggregateTableColumn(
BufferTable,
"SUBID",
{{"TRANID", List.Max, "Max TRANID"}}
)
in
GroupedRows




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

Proud to be a Super User!




LinkedIn






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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.