Forum Discussion
adityavighne
Continued Contributor
7 years agoDynamic Date prior period value
Hi, I have date slicer and I want prior period value. suppose I select 15-31 January date range then I want prior period sum value from 1-14 January. A need the sum of (column A, co...
- 7 years ago
adityavighne
Continued Contributor
7 years agoCan I get DAX for this ...what I wrote is giving the only month before data.
v-cherch-msft
Microsoft Employee
7 years agoHi adityavighne
You may create a calendar table and use below measure.Attached sample file for your reference.
Measure =
CALCULATE (
SUM ( Data[Column1] ) + SUM ( Data[Column2] )
+ SUM ( Data[Column3] ),
FILTER (
Data,
Data[Date] < MIN ( 'Calendar'[Date] )
&& MONTH ( Data[Date] ) = MONTH ( MIN ( 'Calendar'[Date] ) )
)
)
Regards,
- adityavighne7 years ago
Continued Contributor
This measure showing blank value
- v-cherch-msft7 years ago
Microsoft Employee