I've got a formula in Power Query I'm trying to use to read another column and assign a number for each quarter based on month. I can't figure out what's wrong, any help is appreciated.
=if [Month]="Jan" then 1 else [Month]="Feb" then 1 else [Month]="Mar" then 1 else [Month]="Apr" then 2 else [Month]="May" then 2 else [Month]="Jun" then 2 else [Month]="Jul" then 3 else [Month]="Aug" then 3 else [Month]="Sep" then 3 else [Month]="Oct" then 4 else [Month]="Nov" then 4 [Month]="Dec" then 4 else null
=if [Month]="Jan" then 1 else [Month]="Feb" then 1 else [Month]="Mar" then 1 else [Month]="Apr" then 2 else [Month]="May" then 2 else [Month]="Jun" then 2 else [Month]="Jul" then 3 else [Month]="Aug" then 3 else [Month]="Sep" then 3 else [Month]="Oct" then 4 else [Month]="Nov" then 4 [Month]="Dec" then 4 else null