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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
KarmenN
Regular Visitor

Rate calculation

Hello!

 

I have a problem with rate calculation.

If I calculate "NOT OK rate" on manufacturing order level, it is correct, for example:

MO-1236, total qty 50, NOK qty 5, rate 10% (picture 1), but if I want to see it on day or month level, then it is wrong.

KarmenN_0-1665643190995.png

For example:

PowerBi shows rate 9,29% for 02.10, but I would like it to be 4,8%.

 

How PowerBi calculates at the moment:

*Takes average of "MO total qty" on 2.10 and sum of "NOK qty" for same MOs and then NOK qty/average of MO total qty (Average of MO total qty 775/12=64,58, NOK qty =6, rate=6/64,58*100%=9,29%)

KarmenN_5-1665643940435.png

*I would like to calculate it as follows:

on 2.10 I havetwo MOs with following qtys:

-MO-1235 qty 75

-MO-1236 qty 50pcs

Total qty on 2.10 =75+50=125pcs

Total NOK qty on 2.10 =6

rate=6/125*100%=4,8%

 

What and how I should change to get correct rate level on daily, monthly bases?

 

Huge thanks who is willing to help 🙂

 

Here are the pictures of my data:

 

KarmenN_1-1665643272680.png

KarmenN_2-1665643295248.png

KarmenN_3-1665643310430.pngKarmenN_4-1665643334708.png

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @KarmenN ,

 

You calculation is complex ,please share a sample file without sensitive data with me. This will make it easier for me to find the solution.

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.