Forum Discussion
FORMAT() returns Month Number
- 9 years ago
Hi Nicolas,
You can get the month name by using the DAX below.
MonthName = FORMAT(DATE(2016,Table1[MonthNumber],1),"MMMM")OR
Month Name = SWITCH(Table1[MonthNumber],1,"January",2,"February",3,"March",4,"April",5,"May",6,"June",7,"July",8,"August",9,"September",10,"October",11,"November",12,"December")
Regards,
Thanks but it now returns only January...
Is there not another way of doing the same thing?
Thanks!
Hi Nicolas,
You can get the month name by using the DAX below.
MonthName = FORMAT(DATE(2016,Table1[MonthNumber],1),"MMMM")
OR
Month Name = SWITCH(Table1[MonthNumber],1,"January",2,"February",3,"March",4,"April",5,"May",6,"June",7,"July",8,"August",9,"September",10,"October",11,"November",12,"December")
Regards,
- Anonymous7 years agoNot applicable
Hi v-caliao-msft,
is there in a difference in terms of performance, with direct query in place?
Thanks in advance.
regards
Alex