Forum Discussion

patri0t82's avatar
patri0t82
Post Patron
4 years ago
Solved

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 =...
  • patri0t82's avatar
    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