Forum Discussion
StoryofData
3 years agoHelper III
Empty Date Value
Wondering if there a smart way to do this, I have table with cases and their open and closed dates. For the times when the case is still open, I want the card to show "Still Open", I have achieved ...
- 3 years ago
sure 🙂
Date Closed Blank = COALESCE(FORMAT(CALCULATE(MAX('Query1'[DateClosed])),"MM/DD/YYYY") , "Still Open")
lbendlin
3 years agoSuper User
Your approach will only work when [Date Closed] is of type text.
You can use COALESCE
Date Closed = FORMAT(CALCULATE(MAX('Query1'[DateClosed])),"MM/DD/YYYY")
Date Closed Blank = COALESCE([Date Closed] , "Still Open")
- StoryofData3 years agoHelper III
Thank you! So there is no way to have only one measure to achieve this?
- lbendlin3 years agoSuper User
sure 🙂
Date Closed Blank = COALESCE(FORMAT(CALCULATE(MAX('Query1'[DateClosed])),"MM/DD/YYYY") , "Still Open")- StoryofData3 years agoHelper III
Thank you!