Forum Discussion

michellerob2000's avatar
1 year ago
Solved

Compare over two years data

Im trying to create a line chart to compare no of tickets raised monthly over the two years. Ive tried to do it. I cant do it, really need some advice here. Thanks  
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi michellerob2000 ,

     

    My question is, if you compare the number of work orders for two years on the same axis, how should the x-axis be determined? Is it possible to explain this so that I can answer it for you as soon as possible.

    Tickets_CurrentYear = 
    CALCULATE(
        SUM(Tickets[Tickets]),
        YEAR(Tickets[Date]) = YEAR(TODAY())
    )
    Tickets_LastYear = 
    CALCULATE(
        SUM(Tickets[Tickets]),
        YEAR(Tickets[Date]) = YEAR(TODAY()) - 1
    )

     

    Best Regards,
    Adamk Kong