Forum Discussion
Sannat
3 years agoHelper I
Errors in custom column
Hi super users, can you help a novice with this query please? I've created a custom column to show when our next training refresher is due. This is using the last booking date and adding the ref...
- 3 years ago
Hello - here is how you can do this.
SCRIPT
Table.AddColumn(#"Replaced Value2", "Next refresher due", each if [Booking status] = "TB" then "TB" else Date.AddYears ( Date.From ( [Booking status] ), [Refresher cycle in years] ), type text )RESULT
jennratten
3 years agoSuper User
Hello - here is how you can do this.
SCRIPT
Table.AddColumn(#"Replaced Value2", "Next refresher due", each if [Booking status] = "TB" then "TB" else Date.AddYears ( Date.From ( [Booking status] ), [Refresher cycle in years] ), type text )
RESULT
Sannat
3 years agoHelper I
Thanks for the swift reply, I'm just trying it out now.