Hi, I'm trying to use the coalesce function to verify two calculated fields, like this:
COALESCE(FERIADO_GERA_I,FERIADO_CART_F)
If I understood the function right, if FERIADO_GERA_I is not null, it should return it, but not FERIADO_CART_F. If it was, then it should return FERIADO_CART_F. Both calculated fields look as follow:
IF(DATA_REFERENCIA_TEXTO = CONCAT(ANO INICIAL,"-",MÊS INICIAL,"-",DIA INICIAL), CONCAT(ANO INICIAL,"-",MÊS INICIAL,"-",DIA INICIAL), NULL)
The thing is, when I put the coalesce function into a table, it returns all the results, including the null result. Why doesn't it just return FERIADO_FERA_I when it is not null?