Hello - I've searched the forums about this question but haven't arrived at a clear answer yet:
Say I have a pivot table that has one dimension as a row, and TWO columns: first by month (Jan, Feb, Mar), then by year. What I’m trying to do is calculate YoY within month. When I add an expression to the pivot table, it is calculating for each year, when I want it to calculate by month. Plus not 100% sure of the proper syntax.
The data has more than two years, so the calculated column has to be “smart” enough to handle whichever two years the user chooses.
Any ideas? Example of what the final pivot table should look like - the first row is just for clarity indicating the month column.
Tried that and got zeros. So am trying something different - the measure below I've added to return the amount for max year. I have it where month is the only column. The expression "Yr" has the year. The set expression below is not recognizing max year. Instead it is summing across all years. Any ideas?