Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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?

 

 

 

  • Hi,

     

    Try this

     

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

     

    Hope this helps.

6 Replies

  • Stachu's avatar
    Stachu
    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

    • Anonymous's avatar
      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

       

       

       

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

         

        Try this

         

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

         

        Hope this helps.