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
felixG
Regular Visitor

Transfer amount from one object to another

Hello,

 

I would like to transfer the amount of one of the objects to another.

 

For example, I have the following four tables:

 

1) import

 

objectamount
A150
A2200
A3250
A4300
A5200

 

2) matrix

 

object (send)group
A11
A32

 

3) groups

 

groupobjectallocation
1A2100%
2A450%
2A550%

 

4) master table with all objects (unique values) > This table is related with 1) by the object.

 

objecttitle
A1...
A2...
A3...
A4...
A5....

 

The result that Im looking for is to be done with measurement and not with calculated columns.

 

The result should look like this:

 

object

amount

(sum)

group

amount

(send)

amount

(receive)

allocation
A150150 (50-50=) 0
A2200  (100%*50=) 50(200+50=) 250
A32502250 (250-250=) 0
A4300  (50%*250=) 125(300+125=) 425
A5200  (50%*250=) 125(300+125=) 425

 

Can anyone help please? Thanks for your time!

3 REPLIES 3
felixG
Regular Visitor

- Closed -

 

My tested Solution:

 

+ Merging and appending tables in query

+ Creating a new import table, includes new calculated columns of amount

+ Creating Measures based on new import table


Best Regards,

Felix

v-jayw-msft
Community Support
Community Support

Hi @felixG ,

 

Can you provide more information?

1# How do we group these row and why A2, A4, A5 is blank group.

2# How do we get the "send" value and why A2, A4, A5 is blank value.

3# Can you explain the formula of "receive"?

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi @v-jayw-msft ,

 

thanks for your reply.

 

#1 each object can be only a sender or a receiver of amount. the groups (group table) define which object acts as a sender (object A1 & A3). depending on the groups, the costs are then distributed to the recipients. i.e. if the object is part of group 2, the costs will spread across A4 and A5 depending on the given percentages in allocation of table "groups".

 

A2, A4, A5 is blank group cause they dont act as a sending object.

 

#2 the send value is given in table 1) import. its the sum of the amount. i.e. A1 is sending 50 to group 1 (= A2 = 100%).

 

A2, A4, A5 is blank value cause they dont act as a sending object.

 

#3 the formula of "receive" is the result of the tables before. i try to explain it in formula:

 

> first, check if the object belongs to a group (table matrix)

> if the object is part of a group, find the recipients of the costs (table groups)

> allocate the sum total of amount (table import) by the given percentage in table groups to the given object in table groups

 

> The total of A3 is 250. A3 is part of group 2

> group 2 divides the costs into the objects A4 and A5 (50 percent each)

> A3_new = 250-250; A4_new = 50%*250; A5_new = 50%*250

 

Please ask if you need more information.

 

Best Regards,

felix

 

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.