Forum Discussion

jrobinson's avatar
jrobinson
Advocate IV
9 years ago
Solved

Year to Date split by Period

Hi,   I need to create a measure in Power BI which calculates Sales Value for the Year to Date but split out by period. I've created the table I'm aiming for in Excel for clarification, and I'm hav...
  • Anonymous's avatar
    Anonymous
    9 years ago

    OK. That's why TOTALYTD is not working.

    Try this then:

    CALCULATE([Period],FILTER(ALL(Fact),Fact[Date]<=MAX(Fact[Date]) && Fact[Year]=MAX(Fact[Year]))

    Michael