Forum Discussion
Anonymous
4 years agoNot applicable
YoY Calculation doesn't work with a slicer
Hi, I have a data table like below where i'd like to select a date in a slicer and calculate Year over Year sales. Slicer has 3 date options. Last Year, Last Month and Year to date and it is bas...
mh2587
Super User
4 years agoYou have to put closing bracket at the end
Anonymous
4 years agoNot applicable
mh2587 when i added that bracket it worked however it removed all filters in the dashboard and returning wrong values.
My original TY formula works the challange is when a slicer selected i can't get Last year [LY} formula to work.
The way i am reading is when i select YTD it pulls sales for YTD 2022 but i cant get YTD 2021 and calculate YoY Chg. This issue is with [LY] formula. Please note Slicer Date column i added later on to the table based on values in Calendar Year.
Hope this helps clarify.
Thanks