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

How to Calculate Variance (Query)

Hi, I still new to power bi. I need to calculate this table data with the variance formula, but I get an error. This is the formula and table. K=2. Initial Estimate Mean(๐œƒ^) = 98.93455 (I create measure = 98.93455). This is my query

 

Variance = POWER(SUM('Table'[Total Failures (n)])/SUM('Table'[Service Time (ฯ„)])-('Table'[Measure]),2) / SUM('Table'[Machine(k)])-1

 

Variance Formula = ((n/ฯ„)-๐œƒ^)^2 /(k-1)

 

Machine(k)           Total Failures(n)         Service Time(ฯ„)
TEP-A                             7                            0.07884
TEP-B                             6                            0.05256

 

The answer should be 334.634

1 ACCEPTED SOLUTION
Solution Specialist
Solution Specialist

Hi, @2016725975 ,

 

You can use  VARX.S()

 

 

Column = DIVIDE(Total Failures,Service Time)
Measure = VARX.S('Table','Table'[Column])

 

 

Mark this post as a solution if this helps!

View solution in original post

1 REPLY 1
Solution Specialist
Solution Specialist

Hi, @2016725975 ,

 

You can use  VARX.S()

 

 

Column = DIVIDE(Total Failures,Service Time)
Measure = VARX.S('Table','Table'[Column])

 

 

Mark this post as a solution if this helps!

View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI โ€‹

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2โ€“4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors