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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
medaxing
Frequent Visitor

DAX : Sum of parts is same as sum of total parts

Hello Guys,

 

I have created a measure variable debtor_value  and a measure which uses the variable.

The totals works fine for each group but when i select parts the sum is still the total sum. Below is the screenshot and the code.

Any help is really appreciated.

 

 

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Thank you.

Right, I did try that. But I get blank value: 

 

var __table = SUMMARIZE('Aging Group', 'Aging Group'[Aging Group], "__value", [AmountbyDDate])
RETURN
IF(HASONEVALUE('Aging Group'[Aging Group]),[AmountbyDDate], SUMX(__table,[__value]))

 

can't figure it out. any help is really appreciated.

Thanks in advance.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you.

Right, I did try that. But I get blank value: 

 

var __table = SUMMARIZE('Aging Group', 'Aging Group'[Aging Group], "__value", [AmountbyDDate])
RETURN
IF(HASONEVALUE('Aging Group'[Aging Group]),[AmountbyDDate], SUMX(__table,[__value]))

 

can't figure it out. any help is really appreciated.

Thanks in advance.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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