Forum Discussion
How to generate a table with dynamic starting month
- 4 years ago
Hi Py0809 ,
Is that you want something like this gif shows?
If yes, please create an indepened date table for this slicer and subscribe the measure in the value of martix table.
Measure:
Measure = VAR _s = MIN ( 'slicer table'[Date] ) VAR _e = DATE ( YEAR ( _s ) + 1, MONTH ( _s ), 1 ) - 1 RETURN CALCULATE ( SUM ( Facttable[VALUES] ), FILTER ( 'Facttable', [Date] >= _s && [Date] <= _e ) )Pbix file in the end which you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Py0809 ,
Is that you want something like this gif shows?
If yes, please create an indepened date table for this slicer and subscribe the measure in the value of martix table.
Measure:
Measure =
VAR _s =
MIN ( 'slicer table'[Date] )
VAR _e =
DATE ( YEAR ( _s ) + 1, MONTH ( _s ), 1 ) - 1
RETURN
CALCULATE (
SUM ( Facttable[VALUES] ),
FILTER ( 'Facttable', [Date] >= _s && [Date] <= _e )
)
Pbix file in the end which you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.