I need to calculate the Last 3 Months of Production using Dax. I feel like the code below should be correct, but is missing something simple. Can I use the word month, when using FiscalMonth Sales? Are there any other metrics needed? I also have access to a Calendar Table which could work.
I attempted a solution but am getting a syntax error.
I attempted a new solution using Calendarmonth instead of FiscalMonth, but got the same result. The other thing I forgot to mention is that I want it to calculate using the selected period instead of an entered period. For instance, instead of typing "6" below, I want it to calculate previous 3 months sales based on a filter or a month column if the view is in a table.