Tracking Capacity Unit Consumption for DAX Queries with Fabric Notebooks

In this article, we’ll walk through how to use Fabric Notebooks with the SemPy library to execute DAX queries, capture their capacity unit (CU) consumption, and even extend the approach to analyze usage across workspaces or entire capacities.