Forum Discussion
patri0t82
4 years agoPost Patron
VALUES function with DATEADD
Hello, can someone please help me adjust this DAX measure? Currently it's collecting all hours within the selected date range, I'd like to use DATEADD to select minus one month YTD Hours Count =...
- 4 years ago
This works!
YTD Hours Count (Last Month) =CALCULATE(TOTALYTD (SUM ( 'Hours - Tabular'[Value] ),DATEADD( 'CalendarTable'[Date], -1, MONTH)),USERELATIONSHIP ( 'Recordable'[Operating Area], 'Hours - Tabular'[Operating Area] )) + 0
patri0t82
4 years agoPost Patron
Turns out my solution isn't quite working properly. Can anyone tell me a better way of writing it?