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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Community Champion
Community Champion

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
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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
Community Champion
Community Champion

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.