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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
PaulH2
Regular Visitor

Apportioning values on Power BI

Afternoon All,

 

I am a new to Power BI, so apologies if the below has already been covered in earlier posts.

 

We have invoice values that we need to apportion royalty payments to. As our products have multiple royalties applicable against them I am looking to calculate an appotioned value per item for each aplicable royalty code, and then calculate the royalty applicable to each item / royalty code combination.

 

The apportioned values that I have work okay except for grand totals which are sadly incorrect.

 

Below are headers from two data tables that I am linking for this purpose, is there a failsafe formula that I can use to get correct values throughout my table / matrix ?

 

Invoice Data Table
Invoice No
Customer A/c
Item No.
Item Description
Posting Date
Quantity
Unit Price
Line Value
 
Royalties Table
Item No.
Royalty Code
Royalty Description
Royalty Apportioned Value (%)
Royalty % Applicable

 

Any help / guidance would be much appreciated.

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@PaulH2,

 

You may take a look at the following post.

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@PaulH2,

 

You may take a look at the following post.

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

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

Many thanks for the link, this solution works perfectly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors