Forum Discussion
How to adding a Date type column with text type column (containing numbers)
- 4 years ago
Hi Anonymous
You can try this, create a calculated column,
Column = IF ( 'Table'[Resolution Time] <> "NA", ( 'Table'[Logged Date] + 'Table'[Closure Days] ) & "", "OPEN" )Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
You can try this, create a calculated column,
Column =
IF (
'Table'[Resolution Time] <> "NA",
( 'Table'[Logged Date] + 'Table'[Closure Days] ) & "",
"OPEN"
)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Thank you v-xiaotang for your support. It worked.
- Anonymous4 years agoNot applicable
Can you please guide why you concatenated "" in the "True" condition ? Just wante dunderstand for my knowledge.
- v-xiaotang4 years agoCommunity Support
Hi Anonymous
( 'Table'[Logged Date] + 'Table'[Closure Days] ) & ""it returns a date in text format, just like the format of "open". Otherwise, an error message will appear: Expressions that yield variant data-type cannot be used to define calculated columns. More information about this error, please see this link
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.