Forum Discussion
squarecat
Helper I
1 year agoAnnual average from monthly average
Hello everyone, I have a report built on Excel, but management wants it to be migrated to Power BI. In Excel I was using a dynamic table to obtain the sum of all the values per year and per month, ...
- 1 year ago
You can create a measure like
Avg = AVERAGEX ( VALUES ( 'Date'[Year month] ), CALCULATE ( SUM ( 'Table'[Amount] ) ) )
johnt75
Super User
1 year agoYou can create a measure like
Avg =
AVERAGEX (
VALUES ( 'Date'[Year month] ),
CALCULATE ( SUM ( 'Table'[Amount] ) )
)
squarecat
Helper I
1 year agoThank you! this worked, I just added .[month] for the measure to calculate what I needed, this is my final DAX
Avg =
AVERAGEX (
VALUES ( 'Calendar'[Date].[Month] ),
CALCULATE ( SUM ( 'Table'[Amount] ) )
)