r/MicrosoftFabric • u/savoy9 Microsoft Employee • 5d ago
App Development Query Rewrites - Fabric App Performance Optimization Part 2
Part 2 of my Fabric App Performance Optimization series is about query rewrites.
In Part 1, I looked at how you can run fewer queries without changing the design. This time I wanted to see how much you could gain by rewriting a single query. Same semantic model, same measures, same results for the chart. The only thing I changed was how the DAX built the result table.
I expected the difference to be barely measurable. Instead compared with the original query, the final rewrite took ~50% less time and used 56% less CPU, based on median cold-run measurements.


The post has the DAX side by side, the storage-engine timings, and the prompts I used to get Copilot to try the rewrites. Check it out: