+ Reply to Thread
Results 1 to 1 of 1

Calculate or sum a calculated fiel depending on the hierarchy

  1. #1
    Registered User
    Join Date
    06-21-2017
    Location
    FRANCE
    MS-Off Ver
    2013
    Posts
    1

    Question Calculate or sum a calculated fiel depending on the hierarchy

    Hello everyone,

    First at all, I use the PowerPivot version contained in Excel 2013.

    I have a database containing :
    - one row by resource containing the real quantity, the plan quantity and the value
    - resources are classified by production model
    - each production model contains a reference ressource
    - and production models are classified by family

    I want to calculate the difference of production, so I calculated the relative difference of production for the reference ressource, and then I multiply this relative difference by the sum of all the values of all the ressources contained in the production model.
    This calculation works very well when I display the results in a pivot table with the production model only in the rows.

    But the problem appears when I want to calculate this field by family. The difference of production for one family is equal to the sum of all the difference of production for all the production models contained in the family.
    But here PowerPivot sum all the rows corresponding to the family and then makes the calculation.
    How can I ensure that every difference of production has to be calculated independently ofr each production model ?

    I tried some things with the function FILTER(), hoping that it will make an iteration but it doesn't work.

    Thank you in advance for your help
    You will find a excel file attached illustrating my problem, I tried to be as clear as possible, tell me if it's not

    Aeonn
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Linking two calculated cells to calculate in both directions
    By dkatus in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-16-2016, 11:36 AM
  2. How do I convert column hierarchy to flat file hierarchy
    By tbucki1 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 09-21-2016, 09:33 PM
  3. Entering Calculated Dates depending on Frequency
    By adit123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2014, 05:17 PM
  4. [SOLVED] Calculated Field in Pivot table - Need to Calculate again
    By vinaynaran in forum Excel General
    Replies: 3
    Last Post: 11-14-2013, 01:03 PM
  5. Calculated column to only calculate populated rows?
    By brianlg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2013, 09:36 PM
  6. How to Calculate Days elapsed where Weekend is calculated as 1 Working Day?
    By speakbones in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-14-2007, 07:20 PM
  7. CAlculated Fiel inside a pivot table
    By leslie in forum Excel General
    Replies: 0
    Last Post: 06-23-2006, 01:24 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1