Forum Discussion
nikhil893
9 years agoNew Member
How to dynamically calculate the difference between two dates selected from a slicer?
We want to calculate the difference in seconds between the two dates( start and end) selected from a slicer. As we are very new to this could anyone please help us out? Thank you, Nikhil Pra...
- 9 years ago
Hi nikhil893,
PorkChop's DAX expression works fine.
Measure = DATEDIFF(MIN(Sales[Date]),MAX(Sales[Date]),DAY)&" Days"
Regards,
Charlie Liao
nikhil893
9 years agoNew Member
PorkChop : We need to have the start and end dates to be selected from the user using a slicer. Will this measure work for that too ? We do not have any columns named ' Start date' and 'end date'. We have only one column as date which we are using in a slicer.
v-caliao-msft
9 years agoMicrosoft Employee
Hi nikhil893,
PorkChop's DAX expression works fine.
Measure = DATEDIFF(MIN(Sales[Date]),MAX(Sales[Date]),DAY)&" Days"
Regards,
Charlie Liao
- PorkChop9 years agoAdvocate I
*flexes*