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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alisonpappas
Helper III
Helper III

Percent to change by slicer

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.

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi, @alisonpappas,

 

try this

Share of sales =
DIVIDE (
    SUM ( Sales[Sales] );
    CALCULATE ( SUM ( Sales[Sales] ); ALL ( Sales[Company] ) )
)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.