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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.