Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have data where I have the units sold for different companies. I want to be able to take the total units and divide them by each company to get a percent for each company's unit sold and per period.
Example:
Company A: 100 units sold
Company B: 200 Units Sold
Company C: 500 units sold
Company 😧 150 Units Sold
Company E: 50 Units Sold
Total Sold: 1000 units
If I were to select in a slicer just Company A, I want to see in a bar chart 100/1000. Then if I selected both Company A and B, 100/1000 in one bar and 200/1000 on another bar. So basically I want the denomiator to be the total units (can be changed based on the period) and the numorator to be the total units that can be changed by company and period.
Hi, @alisonpappas,
try this
Share of sales = DIVIDE ( SUM ( Sales[Sales] ); CALCULATE ( SUM ( Sales[Sales] ); ALL ( Sales[Company] ) ) )
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |