Forum Discussion

t-atgeor's avatar
t-atgeor
Icon for Microsoft Employee rankMicrosoft Employee
10 years ago
Solved

group dates into month

Hi, is there a way to aggregate dates into a single month? For example, I may have 9/1/2016, 9/3/2016, 9/5/2016 etc. and simply group them into September 2016 field, without having the dates behind. ...
  • GilesWalker's avatar
    GilesWalker
    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]