Forum Discussion
Deviation from average - how?
- 1 year ago
Another AI copy-paste without validation?
Since Total is a measure, it doesn't need to be wrapped in CALCULATE - it is implicitly applied.
This measure will not return the overall average for each month but simply the current month's value. It will at the total level.
Monthly Average = AVERAGEX ( ALL ( Dates[Month Short] ), [Total Revenue] )If you want the average to be applied to each month, modify the filter context by using CALCULATE
Monthly Average CALCULATE = CALCULATE ( AVERAGEX ( VALUES ( Dates[Month Short] ), [Total Revenue] ), ALLSELECTED ( Dates ) --applies to all visible rows only, use ALL to apply to the whole Dates )
Thank you for the detailed answer. Unfortunately I still have issues. Attaching picture:
Év = Year
Hónap = Month (sorry, I am working on my mother language as well).
My measures:
Another AI copy-paste without validation?
Since Total is a measure, it doesn't need to be wrapped in CALCULATE - it is implicitly applied.
This measure will not return the overall average for each month but simply the current month's value. It will at the total level.
Monthly Average =
AVERAGEX ( ALL ( Dates[Month Short] ), [Total Revenue] )
If you want the average to be applied to each month, modify the filter context by using CALCULATE
Monthly Average CALCULATE =
CALCULATE (
AVERAGEX ( VALUES ( Dates[Month Short] ), [Total Revenue] ),
ALLSELECTED ( Dates ) --applies to all visible rows only, use ALL to apply to the whole Dates
)