Forum Discussion

andywil456's avatar
andywil456
Advocate II
10 years ago

calculate formula

I trying to pull through the total sales from another table but i want it to show the break down as per each payment category which is cross referenced by index numbers. The formula i'm using is Column = CALCULATE(SUM('customer payment data'[ Customer Amount]),Table1[Index]) but this is only pull down part of the values. 

 

I have tried to add screenshots but for some reason i can't get these to upload. 

6 Replies

  • Habib's avatar
    Habib
    Continued Contributor

    Apply filter on your referenced table within CALCULATE funtion it might work as I am not sure about exact error.

    • andywil456's avatar
      andywil456
      Advocate II

      Hi Habib,

      Below is a screenshot of the table i have created and the error message.

      What i'm after is a breakdown of the total supplier spend by payment category. 

       

      • Habib's avatar
        Habib
        Continued Contributor

        andywil456CALCULATE function expect filter as second parameter but in your scenario your are providing column value. Please add some filter option like ALL or ALLSELECTED.