Forum Discussion
PeteSil
3 years agoFrequent Visitor
Summing Data Until Date Selected
Hello, I am trying to sum up an amount until the date chosen in the slicer. So for example I have the below data: Date Batch Hours 1/1/2023 BZ89 ...
- 3 years ago
I was actually able to solve it myself. Was overthinking the DAX formula. Maybe it will help someone else, so I posted it below.
BATCH Hours to Date =VAR SelDate = SELECTEDVALUE('Ultimate Calendar'[WeekDay])RETURNCALCULATE(sum('ADP Batch Hours'[Hours]), 'Ultimate Calendar'[WeekDayCorrect] <= SelDate)
Ritaf1983
3 years agoSuper User
Hi PeteSil
If I understand you correctly this tutorial should help.
https://www.youtube.com/watch?v=YWfLrezEc84
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
PeteSil
3 years agoFrequent Visitor
Unfortunately didn't work :(.
Following that video just summed up all the hours, but the hours weren't changing by week selected. So if I went back a month earlier, I would expect to see less hours, but it was keeping them the same total.