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)
PeteSil
3 years agoFrequent Visitor
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])
RETURN
CALCULATE(sum('ADP Batch Hours'[Hours]), 'Ultimate Calendar'[WeekDayCorrect] <= SelDate)