Imke Feldmann has a few tricks for making pivot operations in Power Query faster:
Pivot operations in are a very handy feature in Power Query but they can slow down refresh performance. So with some bittersweet pleasure I can tell that I found a trick to speed them up. The sweetness comes from the fact that the performance improvement is very significant. But the bitterness comes from the fact that I could have used this for almost 4 years now, but was too blind to realize at the time when I first worked with the code.
Read the whole thing and learn why Imke is disappointed in not knowing this four years ago.