Forum Discussion
Date Difference with blank values
- 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.
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.
Dear Bimster,
Can you share your pbix (delete the sensitive data or create dummy data) please?
Regards,
ManNVSM.
- Bimster8 years agoFrequent Visitor
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.
- Anonymous8 years agoNot applicable
Dear Bimster,
It's nice to help you. So choose a reply that you think it 's a solution, it'll help the other user :)
Regards,
ManNVSM.
- amylehman8 years agoNew Member
I am experiencing this same issue, but this does not work for me. It removes the columns from the variance when the date is missing.
Date Variance = IF('Project'[ProjectBaseline1FinishDate]=BLANK(),'Project'[ProjectBaseline1FinishDate],1.0*'Project'[ProjectBaseline1FinishDate] -('Project'[ProjectBaseline0FinishDate]))
- Anonymous3 years agoNot applicable
Hello, Will this work in Direct Query?