dburke
New member
- Joined
- Apr 1, 2016
- Messages
- 25
- Reaction score
- 0
- Points
- 0
Does anyone know an M formula that will convert a week value into a text month (ie change week = 4/4/2015 into 'Apr' instead of '4')?
My current process
1) convert 'Week' column to a numeric month (ie 4/4/2016 becomes '4')
2) create a new 'Month' column and fill using formula
if [Month]= 1 then "Jan"
else if [Month] = 2 then "Feb"
else if [Month]= 3 then "Mar"
else if [Month] = 4 then "Apr" . . .
3) go back and delete the original 'Week' column
This works but it's too many steps. Seems like it could be simplified using something like the 'Number.ToText' forumla.
My current process
1) convert 'Week' column to a numeric month (ie 4/4/2016 becomes '4')
2) create a new 'Month' column and fill using formula
if [Month]= 1 then "Jan"
else if [Month] = 2 then "Feb"
else if [Month]= 3 then "Mar"
else if [Month] = 4 then "Apr" . . .
3) go back and delete the original 'Week' column
This works but it's too many steps. Seems like it could be simplified using something like the 'Number.ToText' forumla.