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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

calculate defect rate with DAX

I need to calculate defect rate for every month. I usually divide the number of defect by the number of monthly delivery. Then, what is the DAX expression for this?

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

create a separate table with date to join between the 2 tables, use month from that table

for the measure try this, just adjust the table names

Measure = 
DIVIDE(SUM(Table1[Rated Complaint]),SUM(Table2[Qty in Un. of Entry]))

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

3 REPLIES 3
Stachu
Community Champion
Community Champion

how does your data look like? have a look at this post on how to get answers quickly
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Anonymous
Not applicable

1.gif2.gifThey are in different tables. I need to divide the number of Rated Complaint of January by the number of Qty of January.

Stachu
Community Champion
Community Champion

create a separate table with date to join between the 2 tables, use month from that table

for the measure try this, just adjust the table names

Measure = 
DIVIDE(SUM(Table1[Rated Complaint]),SUM(Table2[Qty in Un. of Entry]))

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors