+ Reply to Thread
Results 1 to 20 of 20

Complicated Pivot Table Issue With SUMIF like logic.

  1. #1
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Red face Complicated Pivot Table Issue With SUMIF like logic.

    This is a sample set of data:



    Funding is cumulative throughout the year and not particular to one month. So if it is 2022-03 Funding is 20 for MGMT and not 15. The larger data set has multiple Units for same dates in different rows as shown in a few examples in the sample set. Now in the pivot table, unfiltered the values for funding are correct since they are overall sums of funding for entire time frame 01-12. If I filter by date I only return the funding for that month instead of a summation of every month before that as well. So If I pick 2022-04 from the date slicer My funding in the pivot table should be MGMT funding: 20 Power Funding: 95 and Sales Funding: 90 but instead I get MGMT: 0 POWER: 20 SALES funding: 80. Is there any way to calculate this in power query, power pivot, etc in order to get this type of field.

    Picture of table attached




    Capture1.PNG
    Last edited by sbellmore; 10-19-2022 at 02:33 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    read yellow banner at the top of this site
    I am not sure the 2017 version of Excel (Office) exist, maybe on Mac ?

  3. #3
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    I updated it to office 365 enterprise. sandy666

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    maybe something like this?

    Unit Date Sum of Funding Sum of $Sales
    MGMT 2022-01
    70
    404
    2022-03
    15
    302
    2022-05
    25
    203
    2022-07
    35
    402
    2022-09
    45
    9532
    MGMT Total
    190
    10843
    POWER 2022-03
    75
    893
    2022-04
    20
    439
    2022-11
    55
    2021
    2022-12
    60
    607
    POWER Total
    210
    3960
    SALES 2022-02
    80
    773
    2022-04
    80
    234
    2022-06
    30
    604
    2022-08
    40
    405
    2022-10
    50
    349
    SALES Total
    280
    2365
    Grand Total
    680
    17168

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    Quote Originally Posted by sbellmore View Post
    I updated it to office 365 enterprise.
    Thanks for that

  6. #6
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    I understand that method. I am trying to get it all on one line for the Unit instead of 5 separate ones. This pivot table is using a data set with 900,000 rows and many many "Unit" categories with a wide range of dates. Trying to keep it to the Unit and then one line of funding and sales

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    or like this

    with date filter

    Date 2022-03
    Unit Sum of $Sales Sum of Funding
    MGMT
    302
    15
    POWER
    893
    75
    Grand Total
    1195
    90

  8. #8
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    sandy666 the rest of the data is relevant to the month. The date slicer is relevant to this issue as you will only want to see one months worth of information. However the funding column is cumulative .. So when I use the date slicer I am getting the information for the summation of values with that same date. This is causing an issue because the funding is a summation of every date before the selected date with the same unit.

  9. #9
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    with the date filter on your picture table, the logic is wrong, because if the date was 2022-04 MGMT funding would return as 0 when MGMT funding is 15

  10. #10
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    if the date was 2022-04.. for MGMT it would also be the funding values for 2022-04, +03, +02, and +01 summed together (I know it only has data for 03 but you get the point).

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    I am a bit confused
    could you manually show expected result with real dates not as text?

  12. #12
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    sandy666 I have uploaded a book with an elongated table with an example of what it should look like on the (2) sheet.

  13. #13
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    Quote Originally Posted by sandy666 View Post
    I am a bit confused
    could you manually show expected result with real dates not as text?
    I uploaded a secondary file book 1.1

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    why you didn't sum 2022-01 for MGMT, it is before 2022-11 and sum is 560 not 555

  15. #15
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    was a mistake sorry but yes was meant to be summed. Its acting almost as a running total based on criteria

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    so you can try Power Query

    Filter
    2022-11
    Unit Fund Sales
    MGMT 560
    12496
    POWER 364
    4672
    SALES 495
    3142
    Total 1419
    20310

  17. #17
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    What did you do to get that? I have been messing around in power query trying to solve this

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    see attached

    the list for Filter you can do by formula or just hide column A

  19. #19
    Registered User
    Join Date
    10-19-2022
    Location
    united states
    MS-Off Ver
    365 Enterprise
    Posts
    11

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    Sandy, damn that is close. The funding information is close but for 2022-11 the sales are 0

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Complicated Pivot Table Issue With SUMIF like logic.

    you mean values in total row at the bottom disappear?

    for 2022-11 I see:
    Filter Unit Fund Sales
    2022-11 MGMT 560
    12496
    POWER 364
    4672
    SALES 495
    3142
    Total 1419
    20310
    Last edited by sandy666; 10-19-2022 at 04:23 PM.

+ 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. Is my data too complicated for a pivot table?
    By mooki24 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-29-2021, 08:59 PM
  2. Pivot Table - Logic
    By rogrand in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-25-2020, 11:13 AM
  3. Having an issue with how to write a slightly complicated SUMIF formula
    By SallyBV in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2017, 08:45 AM
  4. Pivot Table - Complicated concept regarding groups
    By IIIStan in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-06-2015, 05:51 AM
  5. [SOLVED] Complicated Pivot table
    By Excel Dumbo in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-04-2013, 12:32 AM
  6. Pivot Table - Few complicated queries
    By acsishere in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2008, 05:08 PM
  7. complicated calculation in my pivot table
    By Todd F. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-22-2006, 03:10 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