Forum Discussion

Lu1sT0rr3s's avatar
Lu1sT0rr3s
Frequent Visitor
7 years ago
Solved

Calculate DPMO

Hello all, I'm new using Power BI and there is a few things that are not clear enough.

I'm trying to calculate a DPMO rate however when I introduce my formula the result is completly different that what I expect.

The math of the DPMO es easy, just (Total defects*1000000)/samples taken

 

so, anyone of you could help me on this?

 

thanks in advance

  • parry2k's avatar
    parry2k
    7 years ago

    Lu1sT0rr3s yes you can group by anything. here are steps, some of these can be merged but I like it seperate, easy to work/debug with

     

    Add new column for defects

     

    Defect = Defect[Class0] + Defect[Class1] + Defect[Class2] + Defect[Class3]

    Add new measures for DPMO calculation

     

    Total Defect = SUM( Defect[Defect] )
    
    Total Sample = SUM( Defect[sample] )
    
    DPMO = DIVIDE( ([Total Defect]*1000000), [Total Sample])

    You can group it by any field in your table and it will work.

7 Replies

    • Lu1sT0rr3s's avatar
      Lu1sT0rr3s
      Frequent Visitor

      parry2k  Look, this is a part of my data set:

      Product LineLineQtysampleClass0Class1Class2Class3
      AQR Prox RHLINEA 1119201000531
      AQR Prox RHLINEA 1119201000813
      AQR Prox RHLINEA 111920990220
      AQR Echelon Flex 45LINEA 120461200121
      AQR Echelon Flex 60LINEA 96701320121
      AQR ProximateLINEA 1213440125025429
      AQR ProximateLINEA 121344012502638
      AQR ProximateLINEA 12144001250361125
      AQR Prox RHLINEA 118640800310

       

       

      • Lu1sT0rr3s's avatar
        Lu1sT0rr3s
        Frequent Visitor

        What I do for this was create a new column to sum all defects and this works for my porpuse:

        Then I start to write the formula to calculate the DPMO rate:

        so, the result is the following:

        The defects and samples are corrects and totally works for me but the DPMO is not working.