Forum Discussion

banquovsky's avatar
banquovsky
Frequent Visitor
3 years ago
Solved

Power BI refresh stuck after Sort query

Hi Community, I am experiencing an issue with model refresh. I have a connection to a DataFlow, and everything works fine with the DataFlow and queries until I apply a Sort query.   Once I apply s...
  • BA_Pete's avatar
    3 years ago

    Hi banquovsky ,

     

    Sorting rows is a 'whole table' operation i.e. it requires PQ to load the entire query into memory to perform.

    My guess is that you are hitting a resource limit when trying to apply the query to the model. This is usually due to a shortage of RAM and/or due to using the 32-bit version of PBI Desktop

     

    Options:

    -- Delete the Sort step from your query

    -- Ensure you use the 64-bit version of PBI Desktop

    -- Beef up your machine (and gateway) RAM. I find 48GB+ runs almost anything.

     

    Pete