Consulting

Results 1 to 2 of 2

Thread: Using Calculated Field to Return the Difference Between Two Columns

  1. #1
    VBAX Regular
    Joined
    Sep 2011
    Posts
    42
    Location

    Using Calculated Field to Return the Difference Between Two Columns

    Hi guys,

    I'm having an issue with getting the pivot table to return the difference between two values because one column uses averages instead of sum.

    My pivot table shows:

    Order total Prepaid Amt Difference
    58.09 1,500 -23,941.91

    If I pull up the detail of the prepaid amount 1,500, it is made up of 16 rows, for a total value of 24,00. When I use calculated field of order total minus prepaid amount, it returns -23,941.91, when I really want it to return -1,441.91 (58.09 - 1,500).

    Anyone know how I can fix this? I tried order total - (prepaid amount / count(prepaid amount)), but it doesn't work and I am of ideas.

    Please see attachment for details.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    I think it's impossible, then you should insert a new field in data source table.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •