Power BI January 9, 2025 · 4 min read

Costs of querying semantic models in Power BI and Fabric: XMLA vs. API calls (DAX.INFO functions)

A detailed cost and speed comparison of XMLA queries vs. DAX.INFO() functions for extracting metadata from semantic models across a Fabric tenant.

Gregor Brunner Gregor Brunner

I have been experimenting with the new DAX INFO functions since their public preview release, primarily to extract metadata from semantic models. Traditionally, this metadata retrieval occurred through XMLA queries of Dynamic Management Views (DMVs). While DAX.INFO() functions offer several advantages, I initially hypothesized they might reduce costs measured in CU seconds — a theory that proved incorrect.

Methodology

I conducted a test involving approximately 600 semantic models on an F2 capacity, comparing the computational costs of two approaches:

  • Extracting metadata like CALCDEPENDENCIES via XMLA using Measure Killer
  • Extracting the same metadata via DAX.INFO() functions through the execute DAX queries API call
  • Measuring CU seconds costs before and after each approach
  • Running the test twice over consecutive days to establish averages

Results: Speed Comparison

XMLA demonstrated significantly faster execution, completing the metadata pull in 20 minutes compared to over one hour for DAX.INFO().

Results: Cost Analysis (CU Seconds)

MetricXMLADAX.INFO()Cost Multiplier
Run 13.4 CUs/model8.8 CUs/modelx2.58
Run 22.8 CUs/model7.9 CUs/modelx2.82
Average3.1 CUs/model8.4 CUs/modelx2.71

Of the 595 models tested, only 15 demonstrated lower costs via DAX.INFO() functions. This means 580 models (97.5%) exhibited lower CU costs through XMLA.

Total Capacity Impact

While both approaches consumed minimal compute resources overall:

  • XMLA total cost: 1,836 CUs (1% of daily F2 allowance)
  • DAX.INFO() total cost: 4,988 CUs (2.9% of daily F2 allowance)

Min/Max Cost Variations

MetricXMLA MINXMLA MAXDAX.INFO() MINDAX.INFO() MAX
Run 10.821.80.1113.3
Run 20.834.5295.8

A downloadable Excel file containing complete raw data from this analysis is available on the original post.