Forum Discussion
Month over Month using a different static year ?
- Anonymous5 years ago
Hi Anonymous ,
According to my understand , you wan to sum Amount based on each month of years dynamically ,right?
In my opinion, you could use Matrix and Slicer like this:Or use the following formula:
dateSlicer = VAR _maxDate = MAX ( 'Periods'[Date] ) VAR _minDate = MIN ( 'Periods'[Date] ) RETURN CALCULATE ( SUM ( Sales[Amount] ), FILTER ( ALL ( Periods ), 'Periods'[Date] >= _minDate && 'Periods'[Date] <= _maxDate && 'Periods'[Date].[Month] = MAX ( 'Periods'[Date].[Month] ) ) )Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.Best Regards,
Eyelyn Qin
Hi Anonymous ,
According to my understand , you wan to sum Amount based on each month of years dynamically ,right?
In my opinion, you could use Matrix and Slicer like this:
Or use the following formula:
dateSlicer =
VAR _maxDate =
MAX ( 'Periods'[Date] )
VAR _minDate =
MIN ( 'Periods'[Date] )
RETURN
CALCULATE (
SUM ( Sales[Amount] ),
FILTER (
ALL ( Periods ),
'Periods'[Date] >= _minDate
&& 'Periods'[Date] <= _maxDate
&& 'Periods'[Date].[Month] = MAX ( 'Periods'[Date].[Month] )
)
)
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.
Best Regards,
Eyelyn Qin