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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.