• 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

Timeline / Start and end dates|Dashboards & Charts|Excel Forum|My Online Training Hub

You are here: Home / Timeline / Start and end dates|Dashboards & Charts|Excel Forum|My Online Training Hub
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 & ChartsTimeline / Start and end dates
sp_PrintTopic sp_TopicIcon
Timeline / Start and end dates
Avatar
Prince Thomas Mathews
Member
Members
Level 0
Forum Posts: 7
Member Since:
March 26, 2020
sp_UserOfflineSmall Offline
1
April 22, 2020 - 4:44 pm
sp_Permalink sp_Print

Hi Lynda - many thanks for all the wonderful lessons!

For a timeline I put based on dates from 01 Jan 2020 to 31 Dec 2020, it is also showing all the dates of 2021 as available for slicing. Is there any way to remove this?

Also - is there any way to get the end date of the selection (to analyze, say, the last five weeks' prior to that date)?

Thanks in advance!

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
April 22, 2020 - 10:22 pm
sp_Permalink sp_Print

Hi and welcome to our forum!

Unfortunately, there's no way to restrict the years displayed in the Timeline Slicer, nor is there an option to filter for the 'last n weeks', sorry. 

Mynda

Avatar
Prince Thomas Mathews
Member
Members
Level 0
Forum Posts: 7
Member Since:
March 26, 2020
sp_UserOfflineSmall Offline
3
April 22, 2020 - 11:08 pm
sp_Permalink sp_Print

Hi Lynda - many many thanks for the swift response.

I'm not sure if I-explained / you-read properly. I don't want the 'last n weeks'. What I want - is the last date of the selection. For example, if the month of or till April is selected, what I'm looking for as a result is 30 April.

Re the years displayed, I don't understand why would it display a year that is not there in the source data!

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
April 23, 2020 - 3:18 pm
sp_Permalink sp_Print

The Timeline Slicer is a bit buggy. Sometimes it will show more years than you have data for, other times it will show the actual years. I haven't found a reason for when it does one or the other, but I've reported the bug to Microsoft.

That said, your issue might not be caused by the bug and as I haven't seen your file I wonder if your data originally had dates that extended past the current dates? These might still be in the Pivot Cache and the Timeline is picking these dates up. You can tell the Pivot Cache to forget data deleted from the source in the PivotTable Options > Data tab > in the 'Number of items to retain per field' select 'None'. Then refresh the PivotTable. Let me know if this fixes the problem.

You haven't said where you're expecting to see the 'result'. In the timeline, in the PivotTable?

Mynda

Avatar
Prince Thomas Mathews
Member
Members
Level 0
Forum Posts: 7
Member Since:
March 26, 2020
sp_UserOfflineSmall Offline
5
April 23, 2020 - 7:46 pm
sp_Permalink sp_Print

I had changed the 'Number of items to retain per field' setting to None, yes. I even copied the source to a new file and made a new Pivot. Didn't help.

The 'result' - I want in a cell so that I can use it in a formula.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
April 23, 2020 - 8:15 pm
sp_Permalink sp_Print

Create a dummy PivotTable with just the date field in the value area. Set the aggregation to Maximum. Format the cell as date. 

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Prince Thomas Mathews
Member
Members
Level 0
Forum Posts: 7
Member Since:
March 26, 2020
sp_UserOfflineSmall Offline
7
April 26, 2020 - 4:16 pm
sp_Permalink sp_Print

Ingenious! Thank you!

Avatar
Prince Thomas Mathews
Member
Members
Level 0
Forum Posts: 7
Member Since:
March 26, 2020
sp_UserOfflineSmall Offline
8
April 26, 2020 - 11:21 pm
sp_Permalink sp_Print

Ok now I have a new problem 🙂

The value from the new dummy PivotTable helps automatically categorize the data in the source table. But for my chart to update, I have to make one of the PivotTables refresh automatically (to reflect these changes) as well.

I tried asking Dr. Google for a macro but all the results are based on changes to a cell value.

Could you write me the correct macro please?

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
9
April 27, 2020 - 9:19 am
sp_Permalink sp_Print

The PivotTable doesn't sound like the best solution. If all you want to do is find the latest date in your source data, you can use INDEX&MATCH as explained here. This won't require any VBA and will automatically update.

Mynda

P.S. In future, please start a new thread so that the topic is related to the question.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
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:
Ashley Hughes
Herbie Key
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Forum Stats:
Groups: 3
Forums: 24
Topics: 6526
Posts: 28576

 

Member Stats:
Guest Posters: 49
Members: 32810
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.