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
Anonymous
Not applicable

Summing across a certain ALL not working

Hi all,

 

I am writing DAX code to determine the percent of total business a given data intersection represents, and showing it in a stacked bar chart.

 

Specifically, in debugging my analysis, I am finding that even when I ask DAX to sum across all brands, I am getting different values for each brand (resulting in my total %s being off and adding to 100). How can I ensure that the denominator is truly summing across all brands and chains (customers) in the given time period, and the numerator is summing across just the selected chain for the time period of that particular bar, for just the brand represented by that segment of the bar?

 

Current Code is:

 

Total Sales in Period = CALCULATE(SUM(f_RAD[9L Cases]), ALL(d_Brand[BrandName]), ALL(f_RAD[Chain Parent]))
 
Percent of Total Business (by Volume) v2 =
DIVIDE(
SUMX('f_RAD',[9L Cases]), [Total Sales in Period]
)

 

Thank you in advance for any help you can provide!

 

Best,

 

Hannah

1 REPLY 1
Anonymous
Not applicable

Hi there.

 

Would you mind posting a snapshot of your data model and the report you've generated so far? Also, it would be quite helpful if you posted a sketch (or something similar) of how it should work.

 

Thanks.

 

Best

Darek

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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.