Forum Discussion
mosman
6 years agoFrequent Visitor
DAX Previous Month and Filtering
Hello all, I have table with sales and dates, the table is an aggregate table, it calculate the total sales for the month end. it looks like this: Product_Category Sales Amount Date Bikes ...
- 6 years ago
Hi mosman
Could you create a column that gets the max date for each month in your date table? Then create a helper table that is linked to your date table, with only the distinct values of that column?
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
mosman
6 years agoFrequent Visitor
the measure looks like this:
Starting Balance Amount = CALCULATE(SUM('FactSales'[currentBalance]),ALL(DimDate),PARALLELPERIOD(DimDate[Date],-1,MONTH))
mosman
6 years agoFrequent Visitor
when I use the date from the time intelligence table in the slicer, it looks like this:
but I want it to look like this: