Forum Discussion
Anonymous
9 years agoNot applicable
Need Help Using Slicer to Calculate Difference Between Two Dates
Hi Everyone - I'm looking for help to use a slicer to dynamically calculate the difference between the two dates selected. This is for my "office market statistics project." Specifically, I'm loo...
OwenAuger
9 years agoSuper User
Hi Paul Anonymous
I'm assuming you have a date table called 'Date' with date column 'Date'[Date], otherwise rename.
Also you've already defined an [Occ SF] measure by the looks of it.
Then a measure something like this should do the trick:
Absorption Between First and Last Date =
CALCULATE ( [Occ SF], FIRSTDATE ( 'Date'[Date] ) )
- CALCULATE ( [Occ SF], LASTDATE ( 'Date'[Date] ) )
Owen :)