+ Reply to Thread
Results 1 to 14 of 14

Pivot Table with 2 Sheets...

  1. #1
    Registered User
    Join Date
    05-14-2020
    Location
    Belgium
    MS-Off Ver
    0365
    Posts
    36

    Angry Pivot Table with 2 Sheets...

    Hi,

    I have created a Pivot table with 2 sheet:
    1 sheet is Invoice with all information (date, Group, customer, lines, total, category...)
    2 sheet is target Budget allocated to the customer in category per year.

    I would like to create a report with :

    in row : Group, name of customer,
    in colunms : Year (in my Invoice data 3 years are presents, 2018/2019/2020 under Period) per period - 3 columns with the total invoice and the budget

    My Pivot works well for all information coming from invoices but not the budget.
    How can I do ?
    Many Thanks.

    Eric
    Last edited by AliGW; 05-14-2020 at 11:49 AM. Reason: Irrelevant section of title removed: this is a HELP forum!!!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Pivot Table with 2 Sheets... Please Help

    Have you considered bringing both sheets/tables into Power Pivot and joining the two "tables" on a common field. Then you can create a Pivot Table employing both tables. If you upload sample data to this site (See yellow banner at the top of this page describing how to do that), I am sure that someone here will assist.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-14-2020
    Location
    Belgium
    MS-Off Ver
    0365
    Posts
    36

    Re: Pivot Table with 2 Sheets...

    Hi Alan,

    Thank you for your reply.
    I have set in attachment a example of what I would like to do!
    After having the budget, we can compare the delta between the actual turnover and the Yearly budget (difference, amount and %, and gap to be realized)
    The Yearly budget in False in my Pivot table.
    I have tried a lot of configuration between the two table, but something I miss!
    I can't connect correctly.

    Thanks for your help.

    Take care of you and your family in this bad situation.
    Eric
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Pivot Table with 2 Sheets...

    Look at the attached and determine if this is what you are looking for.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-14-2020
    Location
    Belgium
    MS-Off Ver
    0365
    Posts
    36

    Re: Pivot Table with 2 Sheets...

    Hi Alan,

    Look good :-)
    In attachment the result towards I a looking...
    Can you explain because I can't see relation between table, but no fields and the table above the Pivot.
    The DATA Invoices actually is 110.000 lines and will be bigger at the end of the Year.
    One thing is important is to have a filter option per period (January, february, march, ...) to select the comparaison between a period.
    After having the explanation how to do, I am sure I can be analyse in deeper.

    Thanks for your feedback and explanation.

    Eric
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pivot Table with 2 Sheets...

    Sheet Invoices

    In case you add the text manualy in Column A and B.

    You can use this formula for that.

    See the attached file.

    I2 =MONTH(C2)
    J2 = YEAR(C2)
    K2 = DAY(C2)

    With this data it is a lot easier to get the data in order of month in a pivot table.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Registered User
    Join Date
    05-14-2020
    Location
    Belgium
    MS-Off Ver
    0365
    Posts
    36

    Re: Pivot Table with 2 Sheets...

    Hi,

    Nobody have a idea to help me?
    Thanks for your timer and help.
    Kind regards,

    Eric

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Pivot Table with 2 Sheets...

    Here is a picture of what the merger of the two tables looked like in Power Query and the Mcode.

    Please Login or Register  to view this content.
    Attached Images Attached Images

  9. #9
    Registered User
    Join Date
    05-14-2020
    Location
    Belgium
    MS-Off Ver
    0365
    Posts
    36

    Re: Pivot Table with 2 Sheets...

    Thank You Alan.
    I have done this before with my data and the results are not correct!
    I don't understand, the relation and the merge look ok.
    It is a pitty I can not reproduce it!

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Pivot Table with 2 Sheets...

    How does your data differ from the data shown in your sample? Are the layouts exactly the same?

  11. #11
    Registered User
    Join Date
    05-14-2020
    Location
    Belgium
    MS-Off Ver
    0365
    Posts
    36

    Re: Pivot Table with 2 Sheets...

    Not the same :
    Budget :Year / Clients_Group / Partner_id / Partner Name / PRODUCT CATEGORY 2 / Budget
    Data :Year / Period / Date_Invoice / Invoice/Number / invoice_line_ids/activity_type_id/name / Clients_Group / Partner_id / Activity Name / Partner Name / Quantity / invoice_line_ids/price_subtotal / subtotal / Invoice line/Description / Invoice line/Product/Reference / Product_Category_2 / Internal Category / invoice_line_ids/account_id/display_name / amount_total_company_signed / amount_total_signed /Rate / invoice_line_ids/currency_id/currency_unit_label / invoice_line_ids/currency_id/symbol / Sales / RM / Backup / New18_19

  12. #12
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Pivot Table with 2 Sheets...

    Will the merge by on the same fields. Partner ID and Year. Here is a suggestion: Create your merge with the minimum number of fields from each sheet. And so long as the merger creates the expected results, then add an additional field until something goes astray and you can then determine why it is not working.

  13. #13
    Forum Contributor
    Join Date
    11-11-2012
    Location
    Muscat, Oman
    MS-Off Ver
    Office 365
    Posts
    521

    Re: Pivot Table with 2 Sheets...

    Hello Eric,

    Please check and advise if this is what you want.

    Best Regards/VKS
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    05-14-2020
    Location
    Belgium
    MS-Off Ver
    0365
    Posts
    36

    Re: Pivot Table with 2 Sheets...

    Hello,

    My Power Query is perefct with only one problem.
    Example in attachment.
    Budget per customer with actual figures > Correct but if one customer not yet invoiced, the budget doesn't appeared!
    So my Delta is not correct between the actual figures and the reachable (total budget).
    You can simulate in my example, you change the invoice for customer3 to customer1 and you will see the problem.

    Any idea?
    Thanks.
    Good day.

    Eric
    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. Replies: 14
    Last Post: 01-22-2020, 04:46 AM
  2. VBA to create dynamic table/pivot table to auto refresh charts on other sheets
    By jamesbutler2021 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2019, 09:27 AM
  3. [SOLVED] Adding multiple pivot charts on different sheets in same workbook from one pivot table Exc
    By GregBlosh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2017, 08:33 PM
  4. Pivot table problem - how to relate 3 sheets' data into 1 pivot table?
    By GRG Stevan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-14-2015, 06:12 AM
  5. Replies: 5
    Last Post: 07-01-2011, 01:36 AM
  6. Need to rename sheets and automate pivot table and summary table
    By sameerk0286 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2010, 03:08 AM
  7. pivot table to sheets
    By Emom in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM

Tags for this Thread

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