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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors