Forum Discussion

mes0012's avatar
mes0012
Frequent Visitor
2 years ago
Solved

Calculating previous months sales using monthly data

Hi All,   I'm trying to build a formula into dax that calculates the previous months sales depending on which month is selected. For example in the screenshot below i want 'Sales (£) PM' to pull th...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi mes0012 ,

     

    I suggest you to create a DimDate table with continuous date in it and then try PREVIOUSMONTH.

     

    If this reply still couldn't help you solve your issue, please share a sample file with us and show us a screenshot with the result you want.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.