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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
caballerov
Regular Visitor

Calculating PPK values in PowerBI vs Minitab - Need help.

I am encountering inconsistencies between Power BI and Minitab when calculating the PPK value, despite using the identical data set. While the PPL value calculations align in both software, the PPU and PPK values do not. I would appreciate any assistance in verifying my formulas or guidance towards resolving this discrepancy. Any insights or suggestions to ensure consistent results across both Power BI and Minitab are greatly appreciated.

 

Here are the formulas I've been using for creating new measures:

Ppk =
VAR Ppu = (USL[USL Value] - [Mean]) / (3 * [Sigma])
VAR Ppl = ([Mean] - LSL[LSL Value]) / (3 * [Sigma])
RETURN MIN(Ppu, Ppl)
 
Sigma = STDEV.S(Data[Net(g)])
 
Mean = AVERAGE(Data[Net(g)])

 

PowerBI results:

Screenshot 2024-01-25 175247.png

 

Minitab results:

caballerov_3-1706223422457.png

 

 

 

 

Link to minitabs calculation for PPK: https://blog.minitab.com/en/how-cpk-and-ppk-are-calculated2c-part-1

caballerov_1-1706223362981.pngcaballerov_2-1706223369872.png

 

 

1 ACCEPTED SOLUTION
caballerov
Regular Visitor

For anyone trying to figure this out, I was able to get the same PPK result as Minitab by calculating the Sigma and Mean values by filtering the data within the limits.

 

I created new Measures for both:

Sigma Within Limits =
CALCULATE(
    STDEV.S(Data[Net(g)]),
    FILTER(
        Data,
        Data[Net(g)] >= LSL[LSL Value] &&
        Data[Net(g)] <= USL[USL Value]
    )
)
 
Mean Within Limits =
AVERAGEX(
    FILTER(
        Data,
        Data[Net(g)] >= LSL[LSL Value] &&
        Data[Net(g)] <= USL[USL Value]
    ),
    Data[Net(g)]
)
 
PPU Within Limits = (USL[USL Value] - [Mean Within Limits]) / (3 * [Sigma Within Limits])
PPL Within Limits = ([Mean Within Limits] - LSL[LSL Value]) / (3 * [Sigma Within Limits])
 
PPK Within Limits = MIN([PPU Within Limits][PPL Within Limits])

View solution in original post

5 REPLIES 5
caballerov
Regular Visitor

For anyone trying to figure this out, I was able to get the same PPK result as Minitab by calculating the Sigma and Mean values by filtering the data within the limits.

 

I created new Measures for both:

Sigma Within Limits =
CALCULATE(
    STDEV.S(Data[Net(g)]),
    FILTER(
        Data,
        Data[Net(g)] >= LSL[LSL Value] &&
        Data[Net(g)] <= USL[USL Value]
    )
)
 
Mean Within Limits =
AVERAGEX(
    FILTER(
        Data,
        Data[Net(g)] >= LSL[LSL Value] &&
        Data[Net(g)] <= USL[USL Value]
    ),
    Data[Net(g)]
)
 
PPU Within Limits = (USL[USL Value] - [Mean Within Limits]) / (3 * [Sigma Within Limits])
PPL Within Limits = ([Mean Within Limits] - LSL[LSL Value]) / (3 * [Sigma Within Limits])
 
PPK Within Limits = MIN([PPU Within Limits][PPL Within Limits])
TomasRajnak
New Member

Hello, please how did you make such a nice histogram in PowerBI?
Is there some tutorial you have used?
I saw many tutorials on youtube, but this your example seems most appropriate for me.
Many thanks.

I just used the clustered column chart built into PowerBI

caballerov_0-1706717895974.png

 

To add the X-Axis constant lines:

caballerov_1-1706718003995.png

 

v-weiyan1-msft
Community Support
Community Support

Hi @caballerov ,

 

From the screenshots you provided, it seems that the Sample Mean values on the two screenshots are also different.
Below is the data I created based on the information you provided.

vweiyan1msft_0-1706239958444.png

Then I used the formula you mentioned. Result is as below.

vweiyan1msft_1-1706239975134.png

Have you made the following changes to your Measure?

vweiyan1msft_2-1706239988312.png

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and assist you.

 

Best Regards,
Yulia Yan

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

Hello Yulia,

 

I updated the value to reflect more decimal points:

Sample Mean Formula: 

Mean = AVERAGE(Data[Net(g)])

caballerov_0-1706244220273.png

And yes I did try adding more decimal points to the PPK measure as well:

caballerov_1-1706244279894.png

 

I would love to share the data but its company sensitive. Is there anything you could reccomend looking at?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.