Forum Discussion
SachinC
Helper V
9 years agoDate Formula for MMM
Hi, I have a Date field which I broke down using DAX for Day = day({fieldname]), Month = month([fieldname]) and Year = year([fieldname]). I now want to format my numerical months in my charts to MM...
Phil_Seamark
Microsoft Employee
9 years agoHi SachinC
Please try adding these two columns to your table.
MonthName = FORMAT({fieldname},"MMM YY")
MonthID = INT(FORMAT({fieldname},"YYYYMM")The first column should be formatted the way you want, but I would use the Sort by column feature to have it sorted by the other column.
If it were me, I'd be doing this in the Date/Calendar table :)