Greetings,
I have a dataset on expenses and am trying to calculate three different, but similar percentages:
1. % change in total expenses, year-to-date (relative to last year's total given the same number of days)
2. % change in total expenses for the current month (relative to last year's total for that same month)
3. % change in total expenses for the current quarter (relative to last year's total for that same month)
This is a bit tricky because I need to somehow match the time periods to ensure a fair comparison (e.g. it would be wrong to compare the total expenses for the month of March this year wherein only half the month has passed to all of the expenses for March of last year).
For example, in the dataset that I included, March expenses for the current year are only incurred on two days (March 2nd and 5th). Assuming that March 5th is the current day and I want to calculate the % change in total expenses, YTD, I would compare the total expenses up to the 5th for the current year relative to the total expenses up to the 5th for 2022.
Ideally, the calculation of each of these reflects how I use my slicer (e.g. so if I select 2023, then comparisons are made to 2022; 2022 to 2021, etc.)
Bookmarks