PS: @BrianJ
There is no mismatch in granularities; I linked the Fact table to the Date table; I am showing 12 months.
Had there been a mismatch, no cumulative total would have worked. As such, the current year does work; the previous years do not.
It’s difficult to figure out exactly what’s going on here without the full file to work with. However, I strongly suspect one problem is related to the mismatch in granularities within your cumulative total formulas (actuals operating at the monthly level, while date operating at the daily level). Have you considered allocating your actual data to the daily level using this allocation approach?:
after which you could create a direct relationship from the date table to the result table using Dates[date], which would both simplify your model and DAX, as well as increase the range of time intelligence functions available to you.
When I follow the relations in your tables I think the right dates/months/years are not flowing through them. I have added a picture to show you the difference between the EOM and Perpose columns that are part of that flow.
I have attached a PBIX file with your example where I added Date table. In the Power Query Editor you can use the function Add column by example to make a column with the first date of the month based on the Permonth. In that manner you can link the Date table directly to the F
After I watched a few of Sam’s videos, I have finally realised that the year filter context cannot be ignored (or maybe it could, but I cannot figure how).
That year filter context comes from the year slicer.
It does not matter what dimension I use from the Calendar table, so long it’s linked to the Fact table and, more importantly, I use the year slicer to tell DAX what I want to summarise.
Following @uriah1977 example, I removed the intermediary table between the Calendar table and the Fact table (although I am not sure it did make a difference).
Many thanks all, for your support; I spent practically the entire day of Friday trying to fix it.
The addition of a small year slicer to the canvas won’t trouble anybody.