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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
31311ko
New Member

Calculation of defect rate using the product of yield rate.

Could you please teach me how to calculate DAX?

When calculating the defect rate,

I want to calculate it as "1-Product of yield rate for each inspection process on that day" instead of "defective number / ProductionQuantity",but I am not getting the expected result.

Specifically, in the attached table visual, I would like the defect rate on March 5th to be

1-0.99792*0.99898= 0.00309 = 0.31%.

 

31311ko_1-1743874193547.png

 

 

Currently used DAX

1-Product of yield rate =1-[Product of yield rate]

Product of yield rate = CALCULATE(PRODUCTX('table',[Yield rate]))

Yield rate= 1-[Defect rate]

Defect rate =DIVIDE([DefectiveNumber], [ProductionQuantity], 0)

 

Thank you in advance.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

1-Product of yield rate for each inspection process on that day

on that day, regardless of line?   You can use REMOVEFILTERS for that.

 

lbendlin_0-1743882211572.png

 

View solution in original post

4 REPLIES 4
v-echaithra
Community Support
Community Support

Hi @31311ko ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

Chaithra E

v-echaithra
Community Support
Community Support

Hi @31311ko  ,

we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

Chaithra

v-echaithra
Community Support
Community Support

Hi @31311ko ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

Chaithra E

lbendlin
Super User
Super User

1-Product of yield rate for each inspection process on that day

on that day, regardless of line?   You can use REMOVEFILTERS for that.

 

lbendlin_0-1743882211572.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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