Forum Discussion
Convert numbers to month
- 9 years ago
Hi Anonymous,
The month column is RS month. I need to convert thos numbers in text as Jan, Feb, Mar, etc. but keeping the monthly order when showed in a graph.
In this scenario, you can use the formula below to create a new calculate column to convert the numbers in text as Jan, Feb, Mar, etc. :smileyhappy:
Short Month = SWITCH ( Table1[RS Month], 1, "Jan", 2, "Feb", 3, "Mar", 4, "Apr", 5, "May", 6, "Jun", 7, "Jul", 8, "Aug", 9, "Sep", 10, "Oct", 11, "Nov", 12, "Dec", BLANK () )To keep the monthly order for the "Short Month" column, you can use the 'Sort by Column' option under Modeling tab.
- Select "Short Month" column.
- Click 'Sort by Column' option under Modeling tab.
- Select "RS Month" column.
Regards
Hi Anonymous
use format instead of text...
Month short = FORMAT('date'[Month],"MMM")- Anonymous9 years agoNot applicable
Hi spuder,
thanks for your help. I already tried this but look at the results.. It converts 1 as Dec and all the others as Jan.
- spuder9 years agoResolver IV
Anonymous
Could you show me the column where you'd like to extract the Month short?
- Anonymous9 years agoNot applicable
The month column is RS month. I need to convert thos numbers in text as Jan, Feb, Mar, etc. but keeping the monthly order when showed in a graph.
can access the page, company firewall block it