Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

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
DavisBI
Solution Specialist
Solution Specialist

Hi, @Anonymous ,

 

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
DavisBI
Solution Specialist
Solution Specialist

Hi, @Anonymous ,

 

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!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.