Forum Discussion

mjonesjr8's avatar
mjonesjr8
Frequent Visitor
4 years ago
Solved

Net amount based on 2 columns

I am pretty new to PBI,  This was in Excel, how can I get the samething in Power BI?

 

Thanks!

 

 

Over/ShortAmount
$5.00
S($5.00)
O$0.23
O$19.99
S($20.00)
S($0.21)
O$20.00
O$0.01
O$100
  
  
Net Amount$120.02
  • mjonesjr8's avatar
    mjonesjr8
    4 years ago

    Thanks for the reply but i'm not sure that will work.  It needs to add up all the numbers and then subtract out the (S's short)amount to get the net total.  

5 Replies

  • Hi mjonesjr8 

    Do you have any other columns in the table? Power BI by default aggregate the data and show you in the visual. You can create a measure like below. Even the default amount column will show you the expected result when you drag and drop. The below measure also will show you the expected result. 

     

    =SUM('<Table Name>'[Amount])

     

    Thanks

    Hari

    Did I answer your question? Then please mark my post as the solution.
    If I helped you, click on the Thumbs Up to give Kudos.


    My Blog :: YouTube Channel :: My Linkedin


    • mjonesjr8's avatar
      mjonesjr8
      Frequent Visitor

      Thanks for the reply but i'm not sure that will work.  It needs to add up all the numbers and then subtract out the (S's short)amount to get the net total.  

      • Hariharan_R's avatar
        Hariharan_R
        Solution Sage

        Hi mjonesjr8 

        As you already has negative values, sum  of amount will give 120. 

        Thanks

        Hari