Forum Discussion

GokilaRaviraj's avatar
GokilaRaviraj
Icon for Helper II rankHelper II
2 years ago
Solved

Issue in month months dynamically

Hi, Currently my logic is to show values from current month + next 11 months for this i used a M query below: currentMonth = List.Generate(()=>Date.Month(Date.From(DateTime.FixedLocalNow()))-1, ea...
  • lbendlin's avatar
    lbendlin
    2 years ago
     I  don't have a date field in my table

    Create one.  Usual guidance is to use the first day of the period (first day of the month in your case). Add a proper calendar table to your data model and base your measures on that calendar table.

     

    saying Current month name wasn't recognized.

    Spaces are not allowed as part of the variable name