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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Yield Calculation

Hi,

I just start using power BI and try to figure it out how to do distinctcount. Below is my data set.

 

yaneedolruedej_1-1664421944866.png

I need to calculate the yield by

- test name

- group (group can be first, only, last). 

- if one parameter fail, the whole unit will be fail.

 

Currently, I can do it by calculate Qty and Fail Qty.

yaneedolruedej_3-1664422181469.png

but I will need this function to work if I want to group the "Group" together. So, I can compare yield between

group1: first and only

group 2: last and only.

 

what is the best way to handle this situation ?

 

Thanks

1 REPLY 1
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

You can try creating calculated tables to achieve this effect.

CALCULATE & CALCULATETABLE - What's The Real Diffe... - Microsoft Power BI Community

Using calculated tables in Power BI Desktop - Power BI | Microsoft Learn


If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.