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
Anonymous
Not applicable

SUMX CALCULATION TOTAL

Hello all,

 

i am new in DAX so i hope you guys can help me out. i want to know how i can get into that amount of 1745 from column name TOTAL OPEN AMOUNT. The TOTAL OPEN AMOUNT is based on the sum of all rows from column OPEN AMOUNT (40+605+1100 = 1745)

 

Which DAX formule should i use to calculate this?

 

2018-01-10 17_21_08-Book1 - Excel.png

 

 

1 ACCEPTED SOLUTION

Hi,

 

Try this

 

=CALCULATE(SUM([Open Amount]),ALL(Data[CustomerID]))

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Stachu
Community Champion
Community Champion

do you want to create calculated column or a measure?

from top of my head I'd say measure would look like that:

TOTAL OPEN AMOUNT = CALCULATE(SUM(TableName[Open Amount],ALL(TableName[Open Amount]))

not sure about calculated column though, I hardly ever use them



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Anonymous
Not applicable

Hello Tachu,

 

Thank you for your input but i still dont solve the issue here. Maybe i have to give you another example. now there are two customerid and difference invoiceid.  I would like to avoid that customerid 1 and 2 will get the same amount in the column TOTAL OPEN AMOUNT.

 

I need to get the following result for creating the TOTAL OPEN AMOUNT. Which dax formula should i now create?

 

Thanks in advanced

 

2018-01-11 00_51_09-Book1 (version 1)[AutoRecovered] - Excel.png

 

 

Hi,

 

Try this

 

=CALCULATE(SUM([Open Amount]),ALL(Data[CustomerID]))

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Are you doing this in Excel Power Pivot or Power BI Desktop?  What do you have on rows/columns?

Anonymous
Not applicable

Hi @mattbrice,

 

i am doing this in PowerBI desktop.

 

 

Any Solution for this?

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.