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
KOLD1313
New Member

Need to calculate rejection rate

I have to tabs on Power Query from excel data. One of the tab had the monthly production of 5 items. The other tab had the rejects per those 5 items I neeed to create a control chart to be able to display the rejection rate. There are some month that I dont have production or rejects.

 Example

Screenshot_20241003_171328_Sheets.jpg

Screenshot_20241003_171050_Sheets.jpg

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @KOLD1313 ,

Here is my sample data:

vjunyantmsft_0-1728005843463.png

vjunyantmsft_1-1728005850193.png

In Power Query, merge these two tables as a new one:

vjunyantmsft_3-1728005939358.png

vjunyantmsft_2-1728005900896.png

Expand the column:

vjunyantmsft_7-1728006006801.png
vjunyantmsft_6-1728005991811.png

Add a custom column:

if [rejects] = null then 0 else ([rejects] / [quantity])

vjunyantmsft_8-1728006046360.png

And the final output is as below:

vjunyantmsft_9-1728006067964.png

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @KOLD1313 ,

Here is my sample data:

vjunyantmsft_0-1728005843463.png

vjunyantmsft_1-1728005850193.png

In Power Query, merge these two tables as a new one:

vjunyantmsft_3-1728005939358.png

vjunyantmsft_2-1728005900896.png

Expand the column:

vjunyantmsft_7-1728006006801.png
vjunyantmsft_6-1728005991811.png

Add a custom column:

if [rejects] = null then 0 else ([rejects] / [quantity])

vjunyantmsft_8-1728006046360.png

And the final output is as below:

vjunyantmsft_9-1728006067964.png

 

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

Thank you!

Omid_Motamedise
Super User
Super User

You can merge the tables together in Power Query

if you want more help, please provide your data sample here as table


If my answer helped solve your issue, please consider marking it as the accepted solution.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.