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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Atif
Resolver I
Resolver I

Issue with SUMX

DIVIDE( SUM(Table1[Purchase Value]), SUMX(ALL(Table1), Table1[Purchase Value]))
 
The above formula works fine without any filters. Since I am using ALL function, the filtered numerator still gets divided by the sum of all values.
1 ACCEPTED SOLUTION

Thank you, @sanalytics !

 

A minor tweaking and it worked.
 
DIVIDE( SUM(Table1[Purchase Value]), CALCULATE(SUM(Table1[Purchase Value]), ALL(Table1[Brand])))

View solution in original post

2 REPLIES 2
sanalytics
Super User
Super User

@Atif ..
Please upload your power bi model and dummy data so that we can have a look..
Regards,

sanalytics

 

Thank you, @sanalytics !

 

A minor tweaking and it worked.
 
DIVIDE( SUM(Table1[Purchase Value]), CALCULATE(SUM(Table1[Purchase Value]), ALL(Table1[Brand])))

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors