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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hongyuliu
Helper III
Helper III

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 🙂

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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