Forum Discussion

patri0t82's avatar
patri0t82
Icon for Post Patron rankPost Patron
3 years ago
Solved

Rolling Year to Date Value for Each Operating Area

Hello, I'll explain my setup. My first column is called 'Month / Year' (a date column). My second column is called 'Operating Area' (a text column) and my third column is called 'Hours' (a number co...
  • patri0t82's avatar
    3 years ago

    I guess I found a solution using DAX outside of Power Query that works well. Thank you for your time.

     

    Hours YTD = 
    
    TOTALYTD(
        SUM('Hours Combined'[Hours]),
        'Hours Combined'[Month / Year],
        ALLEXCEPT('Hours Combined','Hours Combined'[Operating Area])
    )