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
TravisGlanzer
Frequent Visitor

Replace Value for a group with Total

I have a DAX that sums Product from a detailed table.  I would like to take the measure a step farther and enter the sum of the products for a particular group when the Division is S.  For example, for Division S in Group X, the answer should be 10 + 12+15=37.  The Division S for Group Y should be 43.  I do not care about totals as those are removed from my presentation.

 

DivisionGroupProduct
NX10
WX12
SX 
EX15
NY12
WY13
SY 
EY18
1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

measure=if(selectedvalue(table[division])="S",calcluate(sum(table[product]),all(table[divsion])),sum(table[product]))

View solution in original post

1 REPLY 1
wdx223_Daniel
Super User
Super User

measure=if(selectedvalue(table[division])="S",calcluate(sum(table[product]),all(table[divsion])),sum(table[product]))

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.