Hi
I am trying to create a visual were we compare current year to date sales to what we call past years avg. to date. The problem I am running into is that the measure I created is applying the formula to all sales and not just past years. My solution would be to create an if statement that applies the formula only to prior year data. I am not sure if this is possible and if possible how to do it.
Prior Year YTD Sales Formula
YTD Average Sales = Total Sales / total workdays current year * workdays year to date current year
Well there’re lot’s and lot’s of content available onto our education portal as well as YouTube channel. You can surf the videos pertaining to this topic. Below are some of the links of the articles as well as videos provided for the reference.
For more concrete solution, please provide the working PBIX file for the reference alongwith the description of the results that you’re trying to achieve so that members of the forum can assist you in a better and efficient manner.
Hoping you find this useful and meets your requirements that you’ve been looking for.
First formula is written to achieve the results at a row level and the second formula is written to achieve the correct results of the grand totals as well.
I’m attaching the PBIX file for the reference so that you can go through it as well as providing few of the links videos based on the concepts applied in it to achieve this results.
Hoping you find this useful and meets your requirements that you’ve been looking for.
Note To view the below post of “Fix Incorrect Totals” please click onto the link and not onto the “expand/collapse” button.