I am working on a department level breakdown on productivity improvements MoM for a series of hospitality properties. What I am trying to accomplish is to find the difference in this month’s productivity compared to last month for each department, then aggregate up all of those ‘deltas’ into an aggregated ‘delta’ for the property each month.
Here’s my issue
I want DAX to calculate a delta for every month and department (the lowest levels of my data) but whenever I nest the DATEADD function into a SUMX, DAX returns 0 or blank for the values for ‘Last Month’.
@haroonali1000 is spot on - posting your PBIX file is the best way to get a specific, detailed response on the forum.
Two things in general that may be a big help to diagnosing the problem here is to break your measures down by components, using measure branching and/or variables. That way you can isolate exactly where the problem is occurring.
Have uploaded a sample file from the data sources, can’t share entire thing but can see the productivity calculations I’m trying to make can be found in the “Sample Measures” table
@haroonali1000 since you were the first one to respond, do you want to work this solution? (kind of like calling a fly ball in the air - I just want to make sure we’re not duplicating each other’s efforts).