Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Previous month dynamic column

Hi,   I have included a picture of the table below that I'm working with. Essentialy what I want is a Column that says "TRUE" when it is the previous month dynamically and "FALSE" when it isnt. I c...
  • ryan_mayu's avatar
    5 years ago

    Anonymous 

    is this what you want?

    Column = 
    VAR monthnumber=SWITCH('Table'[Month],"January",1,"February",2,"March",3,"April",4,"May",5,"June",6,"July",7,"August",8,"September",9,"October",10,"November",11,"December",12)
    return if(month(EOMONTH(today(),-1))=monthnumber,TRUE())