Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi BI Community Team,
I want to calculate the contribution % by province of total sales as the table below.

==> Formula = Grand Total Sales / Total Sales by Province
Any suggestion of measure/metric?
Thanks and Regards,
Solved! Go to Solution.
How about
Proud to be a Super User! | |
Are you looking for this
Proud to be a Super User! | |
Hi,
To your Table visual, drag Province and Client Name. Write these measures
Sales = sum(Data[Total Actual Sales])
Total sales = calculate([Sales],all(Data[Province]))
Contribution (%) = divide([Sales],[Total sales])
Hope this helps.
Does
Contribution % =
var _total =
CALCULATE(
SUM([Total Sales by Province]),
ALL('tableName')
)
Return
DIVIDE(
SUM([Total Sales by Province]),
_total,
0
)
Get you the result you are looking for?
Proud to be a Super User! | |
Hi @jgeddes,
Sorry...I had missing the request information. Actually we have different client but direct service the same province so then we want to know the contribution % by province and eash client.

Any suggestion of measure to calculate it?
Best Regards,
I am not completely understanding your desired outcome but here are a couple of measures that might work for you.
Proud to be a Super User! | |
Hi @jgeddes,
Yes, understand because one sales rep serivce for multiple clients then want to know the contribution by province and client as well.
Please kindly help to check and assist again as the screenshot below.

Any suggestion?
Proud to be a Super User! | |
Hi @jgeddes ,
I am trying your measure suggestion, but it's not working as expectation. Please kindly assist to check the screenshot below.
I think it should be "Total Sales of client and each province" divide by "grand total"


You can check the sample data of my pbix file - https://drive.google.com/file/d/1maX8nwvhc2TIUUVML59cvCUnsPG20PeI/view?usp=sharing
How about
Proud to be a Super User! | |
Hi @jgeddes ,
For example -- If we want to know the contribution of client name "Sprite" by province.
Any suggestion?
Thanks and Regards,
Are you looking for this
Proud to be a Super User! | |
Hi,
Please show the expected result very clearly.
Hi @Ashish_Mathur,
Please kindly help to check the screenshot below that doing the total sales by client vs. total sales by province & client.

Thanks and Regards,
Hi,
To your Table visual, drag Province and Client Name. Write these measures
Sales = sum(Data[Total Actual Sales])
Total sales = calculate([Sales],all(Data[Province]))
Contribution (%) = divide([Sales],[Total sales])
Hope this helps.
Hi @ADSL ,
Here I suggest you to try this measure.
Measure =
VAR _Total_By_Client = CALCULATE(SUM('Table'[Total Actial Sales]),ALLEXCEPT('Table','Table'[Client Name]))
RETURN
DIVIDE(SUM('Table'[Total Actial Sales]),_Total_By_Client)
My Sample:
Result is as below.
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.
Hi @Anonymous,
I am trying your measure suggestion, but it seem not working. Please kindly assist to check the screenshot below.

You can go through the sample file pbix - https://drive.google.com/drive/folders/1e8V0wERSSO7ildCMiM8nOYei2b_91n9D?usp=sharing
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.