• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Pivot Table with non direct results|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Pivot Table with non direct results|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Pivot Table with non direct results
sp_PrintTopic sp_TopicIcon
Pivot Table with non direct results
Avatar
thenewbee thenewbee
Member
Members
Level 0
Forum Posts: 21
Member Since:
January 12, 2021
sp_UserOfflineSmall Offline
1
December 13, 2021 - 10:33 pm
sp_Permalink sp_Print

Hi all,

I have a question about pivot and results for an overview.

Attached there is an excel file, with an table of tasks from A1:H25.

There are different dates enteres, which describes, which task passed into next Phase. So an regular result is doable, like my both pivots in K2:V4 and K8:U10. So I can figure out, how many tasks where entered, and passed into a next phase.

 

My challange is no, to figure out, how many tasks where open at the end of an month. From K32:W37 I´ve tried to explain this:

  • Task_05 passed Phase 1 in January and turned into Phase 2. As this was finalized in March, this task was in end of January and Februrary open. (orange highlighted)
  • Task_02 and Task_14 passed Phase 1 in March and turned into Phase 2. As one was finalized in April and one in May, there where 2 tasks open at the end of March, and one at the end of April. (green highlighted)
  • In september I get 7 results, as they passed Phase 1 before end of September and Phase 2 after. (light red highlighted)
  • As the blue ones passed in same month, they should ignored.

Is there any chance, to make this visible in one Pivot for the different Phases?

sp_AnswersTopicSeeAnswer See Answer
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1807
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
2
December 15, 2021 - 4:56 pm
sp_Permalink sp_Print sp_EditHistory

Unfortunately, I don't think it's possible.

To show a task as open in months 1 and 2 and closed from month 3 onward, you need to have a status column at the end of each month.

Based on your initial table, you have to write a custom vba code that populates another table, properly structured for the desired output.

 

Initial table must be converted to a tabular structure, like:

Tasks Phase Date
Task_01 0 12/03/2021
Task_01 1 12/03/2021
Task_01 2 31/03/2021
Task_01 6 12/04/2021
sp_AnswersTopicAnswer
Answers Post
Avatar
thenewbee thenewbee
Member
Members
Level 0
Forum Posts: 21
Member Since:
January 12, 2021
sp_UserOfflineSmall Offline
3
December 28, 2021 - 12:47 am
sp_Permalink sp_Print

Hello Catalin,

many thanks for your answer 🙂

Unfortunately I have no experience with VBA.

Will it possible, to get these structure also with Power Query?

Here I´m also not an expert, but I´m able to understand this much better than vba 🙂

Avatar
thenewbee thenewbee
Member
Members
Level 0
Forum Posts: 21
Member Since:
January 12, 2021
sp_UserOfflineSmall Offline
4
December 28, 2021 - 1:23 am
sp_Permalink sp_Print

Hello Catalin again,

🙂

I think I got it now on Power Query.

On line F46 of the attached file it works 🙂

Unfortunately I have now all dates in my Pivot on K46.

 

"Task 01" passed in 03/2021 from Phase0 up to Phase2. In this case it jumed immediately to Phase6 and we don´t have a dates from Phases between.

So this task remains already end of March in Phase 6 and was finalized in April.

So I have now threee entries in March, and one in April, but I need just one for "remaining in Phase 6" in April.

 

Did I something wrong?

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1807
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
5
December 29, 2021 - 10:42 pm
sp_Permalink sp_Print sp_EditHistory

Instead of removing null dates, sort tasks and phases properly and Fill down the date column, for Task1 as an example it will populate Phases 3-5 with phase 2 date. Is this what you wanted?

let
Quelle = Table.Combine({Phase0, Phase1, Phase2, Phase3, Phase4, Phase5, Phase6}),
#"Sorted Rows" = Table.Sort(Quelle,{{"Tasks", Order.Ascending}, {"Phase", Order.Ascending}}),
#"Filled Down" = Table.FillDown(#"Sorted Rows",{"Date"})
in
#"Filled Down"
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Roy Lutke, Richard West, Jeff Krueger, Tom VAN LOO, Kylara Papenfuss, Nada Perovic
Guest(s) 6
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.