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! Learn more

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
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.

Top Solution Authors