cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
slav84
Frequent Visitor

How to calculate variance ?

Hello, 
I have table that looks like this:

slav84_0-1627483296794.png

 

I created matrix like this:

slav84_1-1627483675496.png

 

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 1
v-angzheng-msft
Community Support
Community Support

Hi, @slav84 

 

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:

vangzhengmsft_0-1627640417752.png

Pivot the year column and use a table visual.

vangzhengmsft_1-1627640470547.pngvangzhengmsft_2-1627640529289.png

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.

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors