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!View all the Fabric Data Days sessions on demand. View schedule
Hello,
I want to create a measure that divide the sales of a category by the total sales of the same month to represent later the % of sales for each category and month in a chart, but I'm unable to find one measure that works properly. I have attached an image with the desired output in Excel.
Thank you
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
% measure: =
VAR _value =
SUM ( data[value] )
VAR _allcategory =
CALCULATE ( SUM ( data[value] ), ALL ( category[category] ) )
RETURN
DIVIDE ( _value, _allcategory )
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
% measure: =
VAR _value =
SUM ( data[value] )
VAR _allcategory =
CALCULATE ( SUM ( data[value] ), ALL ( category[category] ) )
RETURN
DIVIDE ( _value, _allcategory )
That's exactly what I needed. You've saved my life.
Thank you!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 14 | |
| 11 | |
| 9 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 28 | |
| 20 | |
| 19 | |
| 18 | |
| 12 |