Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

How to calculate variance ?

Hello, 
I have table that looks like this:

 

I created matrix like this:

 

What i really need is matrics that has Variances which is 2021-2020 and also %YoY which would be Variance/2020.
So something like this:

FiscalWeek20202021Variance%YoY
Week-11191331412%
Week-213313300%
Week-31121261413%
Week-4133119-14-11%
Week-511211200%
Week-613314075%
Week-7126112-14-11%
Week-811912676%
Week-912612600%
Week-10133119-14-11%
Week-111261401411%
Week-121121261413%
Week-131191331412%
Week-14119105-14-12%
Week-151051332827%
Week-16119112-7-6%
Week-1711211200%

 

And ultimatelly i need to be able to grab data from 2020, 2021 and %YoY and plot it on the line chart. 
Can this be done?

1 Reply

  • Hi, Anonymous 

     

    If you keep your data structure, then you can't get the above matrix effect, unless you pivot the year column, and then use a table to achieve such a visual effect.

    Matrix:

    Pivot the year column and use a table visual.

    Please refer to the attachment below for details

     

     

    Hope this helps.

     

    Best Regards,
    Community Support Team _ Zeon Zheng
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.