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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
rebrow31
Helper I
Helper I

Dividing a sum number by different values

Hi, 

 

I have the below summarised data in a graoh: 

 

rebrow31_0-1647523583487.png

 

The graph shows how many parts were produced on each machine. 

For the parts that are produced, they are packed in to stillages. Different machines have amounts of parts that can be packed in to a stillage. 

For examples, machine 0, 1, 3 and 4 have 24 parts packed in to one stillage. Machine 3 has 12 parts packed in to 1 stillage. MAchine 2 has 15 parts packed in to one stillage. MAchine 9 has 32 parts packed in to one stillage. 

 

I need to see this graph how it is, by machine, but by the number of stillages packed, nt parts produced. Obviously, if they all had 24 parts per machine I could do a simple division. But, how do I do this division when different machines have a different division number?

 

1 ACCEPTED SOLUTION

Hi @rebrow31 ,

 

You may refer to my sample to learn more details. I hope it could help you solve your problem.

Parts:

1.png

Stillages:

2.png

Create an relationshio by Machine columns.

3.png

Measure:

Stillage can be created by each machine = 
QUOTIENT(SUM(Parts[Parts]),SUM(Stillages[Amount]))
Remaining parts = SUM(Parts[Parts]) - SUM(Stillages[Amount])*[Stillage can be created by each machine]

Result is as below.

1.png

 

Best Regards,
Rico Zhou

 

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

4 REPLIES 4
rebrow31
Helper I
Helper I

I have made a table with all of the machines numbers and the numbers I want it divided by. How would I go about joining them to the production table? 

Hi @rebrow31 ,

 

You may refer to my sample to learn more details. I hope it could help you solve your problem.

Parts:

1.png

Stillages:

2.png

Create an relationshio by Machine columns.

3.png

Measure:

Stillage can be created by each machine = 
QUOTIENT(SUM(Parts[Parts]),SUM(Stillages[Amount]))
Remaining parts = SUM(Parts[Parts]) - SUM(Stillages[Amount])*[Stillage can be created by each machine]

Result is as below.

1.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This worked perfectly, thank you so much for your help! 

davehus
Memorable Member
Memorable Member

Hi @rebrow31 , Can you create a table with the target values and join them into the table and work your calculation from there?

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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