Forum Discussion

Chetcork's avatar
Chetcork
Frequent Visitor
4 years ago
Solved

Display future dates

Hi everyone,   I'm trying to create line chart with two lines one for current data and one line for last year data. I have measures worked out and aswell date table. Date table is created using sta...
  • v-jingzhang's avatar
    v-jingzhang
    4 years ago

    Hi Chetcork

     

    Your assumption is correct that future dates in datetable are necessary. At least the datetable should have dates till the end of 2022. Then you can use measures like below and put them into the line chart. 

    This Year = CALCULATE(SUM('Table'[Value]),'Date'[Year]=2022)
    Last Year = CALCULATE(SUM('Table'[Value]),'Date'[Year]=2021)

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.