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
Raph
Helper III
Helper III

Use a dynamic distribution key

Hello

 

I would like to know how to build a chart where non allocated costs will be moved to countries based on their turnover weight.

For example I have this : 

NameAmountAnalytic
Revenue10.000USA
Revenue50.000UK
Revenue10.000France
Cost of sales-8.000USA
Cost of sales-20.000UK
Cost of sales-3.000France
G&A-5.000G&A

 

where I would like to move -5 k€ of G&A on countries splitted on a dynamic calculation based on turnover and in this case : 

 

USA : 12k/72k = 16,6% 

UK : 50 k/72k = 69,4%

France : 10k/72k = 14%

 

So the expected result is : 

 

NameAmountAnalytic
Revenue12.000USA
Revenue50.000UK
Revenue10.000France
Cost of sales-8.000USA
Cost of sales-20.000UK
Cost of sales-3.000France
G&A-833USA
G&A-3.472UK
G&A-694France

 

What do you advise me to achieve this?

Thank you very much!

 

Kind regards

Raphaël

 

2 ACCEPTED SOLUTIONS
AlB
Super User
Super User

Hi @Raph 

See the attached file for a possible solution.

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

View solution in original post

AlB
Super User
Super User

@Raph 

In fact, here is a simpler version without the auxiliary table. See the attached file

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

View solution in original post

6 REPLIES 6
Raph
Helper III
Helper III

As it seems complicated to transfer a PBIX file, I have reproduced the model on Power Pivot.

 

https://drive.google.com/file/d/1fqun9xrlB4PwU_5C3EgTD2doVNPUTJJD/view?usp=sharing

Raph
Helper III
Helper III

Hello,

 

Anyone who could help me on this?

 

Thank you!

 

Kind regards

Raphaël

 

Raph
Helper III
Helper III

Hello @AlB 

Thank you very much for your second solution, unfortunately I think my example was a little too simple compared to the reality and I can't apply your solution on my dataset. I made a PBIX with something closer to my data and the expected result. It would be nice if you could have a look on this.

 

https://drive.google.com/file/d/1GRWKyi3ZpaPrDElfJ3unfK9-kzJW5AiM/view?usp=sharing

 

Thank you!

 

Kind regards

Raphaël

 

AlB
Super User
Super User

@Raph 

In fact, here is a simpler version without the auxiliary table. See the attached file

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

Raph
Helper III
Helper III

Thank you very much @AlB  !

Really helpful.

 

Kind regards

Raphaël

AlB
Super User
Super User

Hi @Raph 

See the attached file for a possible solution.

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

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.