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 to use separate cards for these or other? How to do date selection minus 1year ? I know how to calculate but how best to visualise the delta?

Many thanks!
  • 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.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Have your problem be solved? Please consider accept the answer as a solution if it worked.

     

    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.