Forum Discussion

mork's avatar
mork
Helper V
10 years ago
Solved

Create column with true/false for previous month

Hello, I have a column with dates in the following format:   d/m/yyyy   How can I create a calculated column that has as values true for every entry that is on the previous month and false for t...
  • Sean's avatar
    10 years ago

    mork This should work...

     

    Column =
    IF ( YEAR ( Calendar[Date] ) = YEAR ( NOW () )
            && MONTH ( Calendar[Date] ) = MONTH ( NOW () ) - 1,
        TRUE (),
        FALSE ()
    )