Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Help with versus previous year

On page, users select from/to dates and cards update to show spend and clicks and cost per click for that period. We need to show values for these same metrics for previous year. Best practice t...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    I'd like to suggest you to use clustered chart.

    previous = CALCULATE(SUM('Table'[spend]),FILTER(ALL('Table'),'Table'[date].[Year]=SELECTEDVALUE('Table'[date].[Year])-1))

     

    Best Regards,

    Jay

    Community Support Team _ Jay Wang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.