Forum Discussion
OhLookAnError
Helper I
3 years agoHow to return a zero when subtrahend is blank
I am trying to acurately display days since opened and days since closed in calculated columns. My days since closed column which is:
Days Since Closed = tblAccounts[Todays Date] - tblAccounts[Account Closed]
is returning this 48888 when there is no closed date.
How can I get this to return zero if the Account closed Column is blank?
Thanks in advance!
Hi OhLookAnError
Please tryDays Since Closed = tblAccounts[Todays Date] - COALESCE ( tblAccounts[Account Closed], tblAccounts[Todays Date] )
3 Replies
- tamerj1
Community Champion
Hi OhLookAnError
Please tryDays Since Closed = tblAccounts[Todays Date] - COALESCE ( tblAccounts[Account Closed], tblAccounts[Todays Date] )- OhLookAnError
Helper I
Worked, Thank you!
- FreemanZ
Super User
try this:
Days Since Closed =VAR _duration =tblAccounts[Todays Date] - tblAccounts[Account Closed]RETURNIF([Account closed Column]=BLANK(),0,_duration)