• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Remove Duplicates in Pivot Table|Dashboards & Charts|Excel Forum|My Online Training Hub

You are here: Home / Remove Duplicates in Pivot Table|Dashboards & Charts|Excel Forum|My Online Training Hub

office scripts course

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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 ForumDashboards & ChartsRemove Duplicates in Pivot Table
sp_PrintTopic sp_TopicIcon
Remove Duplicates in Pivot Table
Avatar
Sunil B
Member
Members
Level 0
Forum Posts: 16
Member Since:
March 27, 2020
sp_UserOfflineSmall Offline
1
October 29, 2020 - 1:30 pm
sp_Permalink sp_Print

Attaching the test data on which I am trying to create some Pivot tables. 

1.Parent - Child Count(1) --- In this PIVOT table the counts are mostly ok except for when the TYPE is a bug eg - Child task 18109 as one entry is for a developer and the other entry is for a QA. So in this pivot table the Bug count is duplicated. I looked for Count removing Duplicate in internet but not getting any such option. Is there a way to achieve this

2. Count By Child Task by Sprint(2) - Same is the scenario out here. The counts by SPRINT are ok except for when there are bugs.

3. Count By Child Task(3) - This is where the count gets exorbitantly high. I can have a DEV task which spans across SPRINT and is OPEN and the that task eventually closes. I would like the task which is closed to be counted in CLOSED but not in OPEN. Similarly if a DEV task in open across SPRINTS and has not closed it should be counted only once which is not happening currently.

 

4. Count By Parent Task(4) - This is the pivot by PARENT task. I would not like the PARENT task to be counted as CLOSED unless all the CHILD task in it are closed. Which is not happening currently.

 

Would also like to add that I cannot take the last Sprint to calculate the open task count as a task which was open in the previous SPRINT might not necessarily come in the next Sprint because it lost it's priority. But still I need to count it as an OPEN task in the consolidation.

 

Is the above directly achievable via Pivot or I need to create some intermediate table to get what I am looking for.    

 

Any help or direction would be appreciated.

 

Sunil

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
October 29, 2020 - 2:06 pm
sp_Permalink sp_Print

Hi Sunil,

Thanks for sharing your file, however I'm not following what your desired results are. Your first example references Child Task 18109 and you say "one entry is for a developer and the other entry is for a QA", but actually 1 entry is for Dev and 4 are Bug.

Please review your file and provide clear examples of where the problems are AND what you expect to see, so we can follow the logic back to the source data.

Mynda

Avatar
Sunil B
Member
Members
Level 0
Forum Posts: 16
Member Since:
March 27, 2020
sp_UserOfflineSmall Offline
3
October 29, 2020 - 2:21 pm
sp_Permalink sp_Print sp_EditHistory

Hi Mynda,

 

Thanks for the quick response. What I intend to say is that when I count the number of Bugs it should be counted 18109 as 1 and not 4 (Sorry for the typo. I ended up calculating by Sprint). 18109 is a Bug but it has 4 entries across the Sprint but I would like it to be counted as 1. So I would like to count the Bug 18109 as 1 and not 4 because it is a single task.

 

However when I look into Count By Child Task by Sprint(2) pivot table, for Sprint 22 in the pivot table I would like the count of Bugs to be 2 and not 3 as 18019 is a single task and not 2 individual task. Also the Grand total of Bugs should be 5 and not 10. As in the excel the distinct count of Bugs is 5 and not 10. Similarly the count of overall Dev task is 23 and not 29 as being calculated. 

 

Sorry for creating the confusion.   

 

Thanks

Sunil

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
October 29, 2020 - 2:58 pm
sp_Permalink sp_Print sp_EditHistory

Hi Sunil,

Why would count of child task 18109 bugs for sprint 22 be 2 when there is only 1 in the dataset? Sprint 21 has 2 bugs, but 18109's sprint 22 only has 1.

Mynda 

Avatar
Sunil B
Member
Members
Level 0
Forum Posts: 16
Member Since:
March 27, 2020
sp_UserOfflineSmall Offline
5
October 29, 2020 - 3:09 pm
sp_Permalink sp_Print sp_EditHistory

Sorry I mean 18220. Just too many numbers around. getting confused. So total bug count should be 2 and not 3 what is currently being displayed for Count By Child Task by Sprint(2) pivot.

Similarly for Sprint 21 the total count of bugs should be 2 and not 4. 

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
October 29, 2020 - 4:05 pm
sp_Permalink sp_Print sp_EditHistory

Hi Sunil,

 

For 1 and 2 you can load to the data model/Power Pivot and use distinct count. For 3 and 4 you need to rearrange the data to remove the items you don't want counted and or classify the tasks into open/closed. In the attached file I've done this with Power Query.

Note: with 3, it's not clear what 'Type' you could retain after removing duplicates that were open. Anyhow, I hope that points you in the right direction.

Mynda

Avatar
Sunil B
Member
Members
Level 0
Forum Posts: 16
Member Since:
March 27, 2020
sp_UserOfflineSmall Offline
7
October 29, 2020 - 4:11 pm
sp_Permalink sp_Print

Thanks Mynda for the soluction. So basically I need to create an intermediate table to have the calculations I want. Cannot use the raw data and in one shot create the Pivot's that I am looking for.

 

Thanks

Sunil

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
8
October 29, 2020 - 4:39 pm
sp_Permalink sp_Print

Correct.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Leigh Thomas
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Young You
Jennifer Owens
Forum Stats:
Groups: 3
Forums: 24
Topics: 6524
Posts: 28554

 

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

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • 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

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

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

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.