This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I am trying to create a daily average in a matrix where the denominator dynamically updates to the number of days in the month based on the filter context of that row's day. So, in the matrix below, there would be a daily average column at the end that would be different each day based on the previous day's billings and an additional day being added to the denominator.
The calculation would reset at the beginning of each month. I think it is similar to the following. Obviously, this is a rolling 14 day average.
Solved! Go to Solution.
I'd recommend using AVERAGE or AVERAGEX instead of trying to calculate the denominator.
For example, this averages over each date in the current month up to the current one:
MTD Daily Average =
AVERAGEX ( DATESMTD ( 'Calendar'[Date] ), [Billing Total] )
I'd recommend using AVERAGE or AVERAGEX instead of trying to calculate the denominator.
For example, this averages over each date in the current month up to the current one:
MTD Daily Average =
AVERAGEX ( DATESMTD ( 'Calendar'[Date] ), [Billing Total] )
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 31 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 74 | |
| 61 | |
| 31 | |
| 31 | |
| 23 |