Forum Discussion
Bimster
8 years agoFrequent Visitor
Date Difference with blank values
Hi, I'm trying to calculate the number of days between two dates and for one of these columns, there may be blanks which I want to ignore (rather than give a large -ve value). What DAX do ...
- 8 years ago
Hi ManNVSM,
Thanks for your help. You gave me the idea of using dummy data so I did this and came up with this formula:
Days to close = if('Breach Register'[Breach closed date]=BLANK(),'Breach Register'[Breach closed date],1.0*'Breach Register'[Breach closed date]-'Breach Register'[Date that breach discovered])
This seems to work ok.
Thanks for your help again.
Bimster
8 years agoFrequent Visitor
Thanks for the help. I've tried this with the allexcept addition and the same error message is appearing.
It seems to be very complicated to do a date difference whilst ignoring blanks.
Anonymous
8 years agoNot applicable
Dear Bimster,
Can you share your pbix (delete the sensitive data or create dummy data) please?
Regards,
ManNVSM.