Forum Discussion
amiller5
4 years agoHelper II
Calculating the difference in days between two dates
I have a start date calculated as a measure and I am wanting to subtract it from "Today()" date. See image below, the first line item has a start date of 4/21/2022 and the Age (days) is 4,734 [Today'...
- 4 years ago
Use datediff instead
DATEDIFF('table'[start date], today(), days) - 4 years ago
There's a start of month function you might be able to use!
STARTOFMONTH function (DAX) - DAX | Microsoft Docs
Syk
4 years agoResident Rockstar
Use datediff instead
DATEDIFF('table'[start date], today(), days) - amiller54 years agoHelper II
Is there a calculation for an "as of" date? Similar to the equation you supplied above, instead of TODAY(), is there something to make it calculate off of as of first of current month?