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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

DAX Help: Divide the Sum of Two Columns Filtered by Another Column (Inspector)

I have been struggling to figure out the proper logic to arrive at the correct value. 

 

I need to determine the Rejected Rate of Parts per Inspector:

Rejected QTY / QTY of Parts

 

Since both QtyParts and QtyRejected are summarized columns I figured the function would be as simple as this 

Reject Rate = TroyCert[QtyRejected]/TroyCert[QtyInspected]
 
It seems that every DAX equation I try doesnt give the proper end value. I cant find where I am making a mistake..
 
baderben31_0-1627057861778.png

 

Any help would be appreciated. 

 

Ben

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I think you need a measure like

 

Reject Rate = divide(sum(TroyCert[QtyRejected]),sum(TroyCert[QtyInspected]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

You are a life saver @amitchandak! I thought i tried this already but apparently not. Works as antivipated. 

 

Best Regards,

 

Ben

amitchandak
Super User
Super User

@Anonymous , I think you need a measure like

 

Reject Rate = divide(sum(TroyCert[QtyRejected]),sum(TroyCert[QtyInspected]))

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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