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
Anonymous
Not applicable

divide a value from two different tables for a specific variety/product

Hi all,

 

I'm trying to divide a value from two different tables for a specific variety/product. 

 

In one table I've Bins Quantity as a mesure and another table has the "rate per hour" based on variety. What I am wanting to do is divide bins quantity by rate per hour for each specific variety. 

 

For example - Variety 629 has 256 bins packed and in the budgted table the variety budget rate is 0.5. I want to divide these  256 / 0.5 = 532.

table 2.JPG

table1.JPG

What is happening when I add into the table it takes the sum of rate per hour instead of the individual rate per hour. Measure 2 (sum) is taking the overall total rather than 0.5 for variety 629.

table.JPG

Formulas I have used so far:

Measure (sum) =  MAXX(DISTINCT('QM-IM-Control Table'[Variety]), MAX('QM-IM-Control Table'[Rate Per Hour]))

Measure 2 (sum) = SUMX(DISTINCT('QM-IM-Control Table'[Variety]), [Measure (sum)])

Measure 3 (sum) = [Bins Quantity] / [Measure 2 (sum)]
 
Going around in circles, any help will be much appreciated! Thank you

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Looks like I've got it to work. Entered different variety from another table in Measure (sum) and played with the relationships and is generating the correct number 😄

table.JPG

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Looks like I've got it to work. Entered different variety from another table in Measure (sum) and played with the relationships and is generating the correct number 😄

table.JPG

 

 

@Anonymous sounds good, it boils down to data modelling and it is key component when designing reports.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous can you share raw sample data in excel  and expected output. lot more depends how your tables are related and how your data looks like



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors