Back to blog

Power BI

Power BI DAX Formulas Every Finance Team Needs

Essential DAX patterns for financial reporting: YTD calculations, rolling averages, variance analysis, and budget-vs-actual comparisons in Power BI.

March 25, 202410 min read

Why DAX Matters for Finance

DAX (Data Analysis Expressions) is the formula language that powers Power BI calculations. For finance teams, mastering key DAX patterns unlocks automated variance analysis, rolling forecasts, and time-intelligence calculations that update in real time.

Year-to-Date and Period Comparisons

TOTALYTD, SAMEPERIODLASTYEAR, and DATEADD functions let you create year-over-year comparisons without manual date filtering. A single measure can show current YTD revenue alongside the prior year, with variance calculated automatically.

Budget vs Actual Analysis

Combine CALCULATE with filter context to compare actual results against budget at any granularity — monthly, quarterly, by department or cost centre. Conditional formatting highlights unfavourable variances instantly.

Rolling Averages and Trends

Use AVERAGEX with DATESINPERIOD to create 3-month, 6-month, or 12-month rolling averages that smooth out seasonal fluctuations and reveal underlying trends in revenue, costs, or KPIs.

Practical Tips

Always build a proper date table with CALENDAR or CALENDARAUTO. Use variables (VAR) to improve readability and performance. Test measures with a matrix visual before embedding in final reports. Document complex DAX with comments for your future self.

More in Power BI

Ready to put this into practice?

Let's discuss how this applies to your business.