DAX code
Average of Monthly Totals =
AVERAGEX(
SUMMARIZE(ALLSELECTED('Date'), 'Date'[Year], 'Date'[Month]),
[Total Sales]
)
Averages sales across whole months, rather than averaging daily transaction rows.
Type your table and column names once. Every measure below updates.
Average of Monthly Totals =
AVERAGEX(
SUMMARIZE(ALLSELECTED('Date'), 'Date'[Year], 'Date'[Month]),
[Total Sales]
)
This avoids the common mistake of using AVERAGE directly on a fact table, which averages individual transactions instead of monthly totals.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Average of Monthly Totals.