Forum Discussion

PatrickByGecko's avatar
6 years ago
Solved

Probleme when Evaluating dates

Hello

I get a problem when comparing to dates, Is this instruction correct?

 
VAR _DateBeginMonth = DATEVALUE("01/" & MONTH(TODAY()) & "/" & YEAR(TODAY()))
VAR _DateBeginFinal = if ( 'TABLE'[DATE BEGIN] <= _DateDebutMonth ; _DateDebutMonth; 'TABLE'[DATE BEGIN] )
 
Because this comparison is always false though I'm sure 'TABLE'[DATE BEGIN] is bigger than _DateDebutMonth.
So I suppose I have a problem of syntax...
  • Hi

    I did put my conditions inside the FIlter command and it is OK. It is not a beautiful code but it works...

    Thank you again.

8 Replies