Forum Discussion
nerdyplayer
Helper I
2 years agoneed help with a switch function with a null value
Always having problems with blank value. i am trying to do a switch function, if the date value is blank "--" if not, formula will do a datediff between 2 dates. testing = switch(
TRUE,
...
- Anonymous2 years ago
Hi nerdyplayer
the main issue is confliction of data type within the same column.
Hence to avoid this confliction I have converted the final value in string.
Please check the below snapIf this resolves your issue then please accept the same as your solution.
HotChilli
Community Champion
2 years agonetworkdays returns an integer, the other path returns a text string. You can't have those options in a SWITCH/IF. You have to return the same type from all paths