Forum Discussion

kafreitass's avatar
kafreitass
Helper I
3 years ago

Bring a date value to calculated column

Hello, Guys!

Someone could help me?

I would like to make a comparison between the date of the table dProjects and the date of the table fRealizado, but how would I bring this value to a calculated column? I want to create a status by doing this comparison. For example: If date x from table fRealizado is greater than the current date and valueRepassed is less than column y, return Active, otherwise stand by

 

I'm trying to use the following function:

 

Status Projeto = 

VAR DtLancamento = SELECTEDVALUE(fRealizado[Dt. Lançto Módulo (1º Repasse/Venda)])


RETURN

    IF(DtLancamento <= TODAY(),
        IF([Qtde Repasses - Realizado] = [Total Lote], "Concluído","Ativo"),"Stand by")

1 Reply