Forum Discussion

Ferha_Jafri's avatar
Ferha_Jafri
Frequent Visitor
2 years ago
Solved

How to get Previous Month Year

Hello Experts,   I am new to Power BI, I have a requirement in which I ran a report for prior month, and I want to automate the year. I can easily do as format(today(),"YYYY") but the issue is that...
  • lbendlin's avatar
    2 years ago

    Read about DATEADD()  - it allows you to do your shifts by month or by year etc.

     

    It is mandatory that your data model includes a calendar table and that the time intelligence DAX is applied on that table.