Forum Discussion
anongard
9 years agoHelper I
DATEDIFF with blank dates
Hello all, I'm struggling hard with the datediff function right now. My problem is this: I have two columns of dates, column A is a start date and column B is a finish date. Every column has ...
- Anonymous9 years ago
What days do you want to return for those blank end dates? If you want to return the days between start date and today when the end date us blank, you can use the following DAX to calculate age of the record.
Column = IF(ISBLANK(Table[End Date]),DATEDIFF(Table[Start Date],TODAY(),DAY),DATEDIFF(Table[Start Date],Table[End Date],DAY))
Regards,
Anonymous
9 years agoNot applicable
anongard,
I am not able to reproduce your issue. In Query Editor, add a custom column as shown in the following screenshot.
Regards,
anongard
9 years agoHelper I
I was able to solve this with conditional columns, thankfully. I don't know why it worked for you though, I have literally the exact same thing typed in mine and I still get cyclic errors. Is there something that could be giving it trouble in the data?