Forum Discussion
group dates into month
- 10 years ago
Hi BhaveshPatel
I did too. To make the dates into Sep 2016 then you can do the following:
MonthY = FORMAT(DateKey[Date],"MMM")&" " &DateKey[Year]
t-atgeor - This can be done easily using DAX. Create a new column with the following:
Month = FORMAT(YOUR_DATE_COLUMN,"MMM")
Giles
- BhaveshPatel10 years ago
Super User
Hi Giles,
It seems like you misunderstood the problem. He would like his all dates to be grouped in Sep 2016.
Thanks & Regards,
Bhavesh
- GilesWalker10 years ago
Skilled Sharer
Hi BhaveshPatel
I did too. To make the dates into Sep 2016 then you can do the following:
MonthY = FORMAT(DateKey[Date],"MMM")&" " &DateKey[Year]
- t-atgeor10 years ago
Microsoft Employee
Hi GilesWalker, BhaveshPatel,
thank you very much for the response. Works perfectly. As a solution, would simply add that the text field has to be converted afterwards into Date, otherwise it will group the field by alphabetical order.
Just a short question. Do you happen to know any good source where I could learn the basics of DAX, any webpage / file where you have positive experience from?
Thanks again and wish you a great week.
Atanas