Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello everyone,
I would like to specify the percentage values in a table based on a sum from a measure. But not a percentage distribution, rather, for example, there were 50 sales of product Teddy1 and 10 sales of Teddy2. There were 100 sales in total, so the output for Teddy1 should be 50% and for Teddy2 10%. How can I do this?
Thanks and best regards,
Chris
Solved! Go to Solution.
Hi @Macfly123 ,
For this you need to do a measure similar to this one:
Percentage of total = DIVIDE ( SUM(Table[Column]), CALCULATE(SUM(Table[Column]), REMOVEFILTERS(Table[Product]))
Be aware that depending on model this may need to be with a different syntax.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Macfly123,
Thank you for raching out to the Microsoft Fabric Community Forum. Also, thanks to @Ashish_Mathur, @srlabhe, @burakkaragoz, @MFelix, for those inputs on this thread.
Has your issue been resolved? If the response provided by the community member @Ashish_Mathur, @srlabhe, @burakkaragoz, @MFelix, addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.
Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.
Thank you for using the Microsoft Community Forum.
Hi,
You may also explore visual calculations. To receive specific help, share the download link of the PBI file and show the expected result there.
Total Sales = SUM('YourTableName'[Sales])Percentage of Total Sales =
DIVIDE(
[Total Sales],
CALCULATE(
[Total Sales],
REMOVEFILTERS('YourTableName'[Product]) -- Replace 'Product' with your actual product column name
)
)Hi @Macfly123 ,
@MFelix is spot on with the formula pattern.
To give you a bit more context on why this works, Power BI calculates every row independently. Without the CALCULATE and REMOVEFILTERS (or ALL) part, Power BI would only see "Teddy1" for both the numerator and the denominator, giving you 100% for every row.
By using REMOVEFILTERS, you are telling the measure to "ignore what product is on this row and give me the grand total of everything."
One Pro Tip on "Visual Totals": If you want your percentage to recalculate based on slicers (for example, if you filter to show only "Blue Toys" and you want the total to be 100% of just the blue ones), you should use ALLSELECTED instead.
Here is the difference:
REMOVEFILTERS / ALL: Calculates % against the entire database (Global Total).
ALLSELECTED: Calculates % against whatever is currently visible in your report (Visual Total).
And lastly, don't forget to select your new measure and click the % icon in the Measure Tools tab at the top to format it correctly!
Hope this adds some clarity to the solution!
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
This response was assisted by AI for translation and formatting purposes.
Hi @Macfly123 ,
For this you need to do a measure similar to this one:
Percentage of total = DIVIDE ( SUM(Table[Column]), CALCULATE(SUM(Table[Column]), REMOVEFILTERS(Table[Product]))
Be aware that depending on model this may need to be with a different syntax.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português| User | Count |
|---|---|
| 53 | |
| 40 | |
| 35 | |
| 24 | |
| 22 |
| User | Count |
|---|---|
| 135 | |
| 109 | |
| 57 | |
| 43 | |
| 38 |