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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Taman
Regular Visitor

How to create measures to calculation FPY based on stages

What is the best way to calculation the FPY distinct count with Serial Number by Stages

 

Test1 =FPY%

Test2 =FPY%

Test3 =FPY%

Test4 =FPY%

 

 

Sample Data

Serial NumberTest StagesTest IDTest DateResult
11111111Test1-Start103/21/2024 1:00Pass
11111111Test1-End203/21/2024 1:30Pass
22222222Test1-Start103/21/2024 1:00Failed
22222222Test1-Start103/21/2024 1:15Pass
22222222Test1-End203/21/2024 1:45Pass
33333333Test2-Start303/21/2024 1:45Pass
33333333Test2-End403/21/2024 2:00Pass
44444444Test2-Start303/21/2024 2:00Failed
44444444Test2-Start303/21/2024 2:10Pass
44444444Test2-End403/21/2024 2:40Pass
55555555Test3-Start503/21/2024 2:10Pass
55555555Test3-End603/21/2024 2:40Pass
66666666Test4-Start703/21/2024 2:10Pass
66666666Test4-End803/21/2024 2:50Pass
77777777Test4-Start703/21/2024 2:50Failed
77777777Test4-Start703/21/2024 3:10Pass
77777777Test4-End803/21/2024 3:50Pass
11111111Test3-Start503/21/2024 3:10Failed
11111111Test3-Start503/21/2024 3:20Pass
11111111Test3-End603/21/2024 3:50Pass

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Taman ,
Here some steps that I want to share, you can check them if they suitable for your requirement.
Here is my test data:

vheqmsft_0-1711332333106.png

First, Splitting Test Stage based on "-"

vheqmsft_1-1711332471342.png
Create a measure

 

FYP% = 
VAR _COUNT = 
CALCULATE(
    COUNT('Table'[Test Stages.1]),
    ALLEXCEPT(
        'Table',
        'Table'[Test Stages.1]
    )
)
VAR _startpass = 
CALCULATE(
    COUNT('Table'[Result]),
    FILTER(
        'Table',
        'Table'[Result] = "Pass" && 'Table'[Test Stages.2] = "Start" 
    )
)
RETURN
_startpass/_COUNT

 

Fianl output

vheqmsft_2-1711332540269.png

 

Best regards,

Albert He

 

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

 

for the FPY culacution it shouldn't count for the SN were failed at 1st time capture in test

Here is the situation:
Total SN count completed the test cycle in Stage w/test-1  : Qty 2
Total SN count completed the test cycle in Stage w/test-1 with 1st time pass : Qty 1
Total Units Requiring Rework: Qty 1


Therefore:

First Pass Yield = (2SN -1 Reworked ) / 100 = 50%

lbendlin
Super User
Super User

What is FPY ?

FPY = first pass yield

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors