cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
regasanyoto Member
Member

How to create variance field and variance %

Hello all,

 

 

i'm beginner and just want to know how i can create the variance of column 1 and 2 and also the variance %

 

2017-05-29 13_49_50-Orakel Product Performance v1.0 - Power BI Desktop.png

 

the numbers 1 until 5 represent columname MONTH and the products represent columnname PRODUCT.

 

Kind regards,

 

Rega

 

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-qiuyu-msft
Moderator

Re: How to create variance field and variance %

Hi @regasanyoto,

 

You can create measures below:

 

Variance = CALCULATE(SUM(Table1[Amount]),FILTER(Table1,'Table1'[Month]=1))-CALCULATE(SUM(Table1[Amount]),FILTER(Table1,'Table1'[Month]=2))

 

Variance % = DIVIDE('Table1'[Variance],CALCULATE(SUM(Table1[Amount]),FILTER(ALL(Table1),'Table1'[Month]=1)))

 

q2.PNG

 

By the way, I would suggest you display those two measures in card visuals. As you use matrix visual to display data originally, if we add two measures to this matrix, two measures values will display under each column group, means under 1, 2,...,5, each will have three columns. It will make the matrix messy, as you just want to return variance between the 1 and 2.

 

Best Regards,
Qiuyun Yu

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
6 REPLIES 6
Super User
Super User

Re: How to create variance field and variance %

Do you mean like:

 

Variance = [1] - [2]

Variance% = ([1] - [2]) / [1]

I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Moderator v-qiuyu-msft
Moderator

Re: How to create variance field and variance %

Hi @regasanyoto,

 

You can create measures below:

 

Variance = CALCULATE(SUM(Table1[Amount]),FILTER(Table1,'Table1'[Month]=1))-CALCULATE(SUM(Table1[Amount]),FILTER(Table1,'Table1'[Month]=2))

 

Variance % = DIVIDE('Table1'[Variance],CALCULATE(SUM(Table1[Amount]),FILTER(ALL(Table1),'Table1'[Month]=1)))

 

q2.PNG

 

By the way, I would suggest you display those two measures in card visuals. As you use matrix visual to display data originally, if we add two measures to this matrix, two measures values will display under each column group, means under 1, 2,...,5, each will have three columns. It will make the matrix messy, as you just want to return variance between the 1 and 2.

 

Best Regards,
Qiuyun Yu

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
regasanyoto Member
Member

Re: How to create variance field and variance %

Hi @Greg_Deckler,

 

indeed!

regasanyoto Member
Member

Re: How to create variance field and variance %

HI @v-qiuyu-msft,

 

Thanks for your advise. But what if want to have measures which calculate the variance and variance % between month 2 and 3 or 4 and 5 ? So to have a flexible measurements?

 

 

Highlighted
klabir
Advisor

Re: How to create variance field and variance %

Have a look at our Variance and Waterfall Chart:

https://dataviz.boutique/

FeatureSheetVarianceOS.pngFeatureSheetWaterfall6.PNG

TripsM Frequent Visitor
Frequent Visitor

Re: How to create variance field and variance %

How did you get the Table reference to work? I can't find table names or anything similar to that using the current PowerBI Desktop.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 223 members 2,265 guests
Please welcome our newest community members: