Forum Discussion

noah44's avatar
noah44
Helper I
5 years ago
Solved

Getting Month and Year from a Datetime field with DirectQuery

Hello,   I have a report where I want to show hourly, daily, monthly and yearly data.   It all worked fine expect for the monthly overview.   I tried it like this: DATEVALUE(MONTH(smrt_eigenv...
  • noah44's avatar
    5 years ago

    Hi, 

     

    thanks for your answers. Sadly they both did not work.

    But I found a solution that works for me:

     

    DATE(YEAR('Table'[date]), MONTH('Table'[date]), 1)

     

    Best Regards

    Noah