Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Getting Invoice Total of specific line item

All -

 

I'm working with a invoice detail report and am trying to calculate the total invoice amount if/when I isolate a single line item. The output I'm currently seeing is that the result is multiplied by the times  something is repeated within a specific line item.

 

Here is an example:

 

Invoice NumberProduct codeAmount
inv 123prod 1100
inv 123prod 2250
inv 123prod 3200
inv 123prod 2250
inv 123prod 2250
inv 123prod 4150
   
Total 1200

 

 

THe current error I find is that when I search for prod 2, the total amount returned is 3600. The total amount of 1200 is counted 3 times due to prod 2 repeating. 

 

The desired outcome is when i filter/search for invoices containing prod 2, it should be 1200 in this single instance

4 Replies

  • v-danhe-msft's avatar
    v-danhe-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi Anonymous ,

    Waht is your desired result? If I select Prod 2, it will show 750:

     

    Regards,

    Daniel He

    • Anonymous's avatar
      Anonymous
      Not applicable
      The desired result is 1200 for these invoices. This series is just one of many.
      I want to know the sun for all of Inv123 when I select just prod 2.

      I’m trying to determine the total spend if an invoice with many line items contained one particular line (prod 2)