• 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
    • 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

Dynamic Filtering of Pivot Table|Dashboards & Charts|Excel Forum|My Online Training Hub

You are here: Home / Dynamic Filtering of Pivot Table|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 & ChartsDynamic Filtering of Pivot Table
sp_PrintTopic sp_TopicIcon
Dynamic Filtering of Pivot Table
Avatar
Sue H.

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 10, 2023
sp_UserOfflineSmall Offline
1
January 11, 2023 - 3:42 pm
sp_Permalink sp_Print

Hi there. I built a PM Dashboard (Thank you Mynda!). Management have requested that the dashboard only displays a 6 weeks spread. Two weeks in the past from today's date and 4 weeks in the future of today's date. Tab - Storage M5 & M6, hold the start and end date of the 6 weeks spread from today's date. Tab Dashboard - L9 using Storage M5 to start off the calendar display.

In addition to only showing the 6 week spread, they would like the task list to only display those tasks that are active and fall within that date range.
- if a task started 8 weeks ago, but is still "in progress", it should show
- display those tasks that are due to be completed during that period.
- display those tasks that are due to commence during that period.

So is there a way to "filter" the pivot table within the Dashboard tab, based on the values held in Storage M5 & M6.

The intent is the dashboard, anytime it is viewed, displays the "current" six weeks (2 in arrears and 4 in advance of Today() ).

I've attached a sample file of what I've done. I hope this makes sense.

Thank you.
Sue

Avatar
Jessica Stewart
Northern USA
Member
Members

Dashboards

Power Query
Level 0
Forum Posts: 185
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
2
January 12, 2023 - 2:43 am
sp_Permalink sp_Print

The attachment didn't attach. Don't forget to hit 'Start Upload' and wait for the grey check mark to appear before hitting 'Submit'.

What version of Excel do you have? if you have 365 do you need backward compatibility with earlier versions of Excel, asking to know if you can use some of the new formulas. Another thought I had was using power query, would that be an option? Just a couple of ideas to get your creative juices flowing whilst we wait for the attachment. ๐Ÿ™‚

Avatar
Sue H.

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 10, 2023
sp_UserOfflineSmall Offline
3
January 12, 2023 - 9:06 am
sp_Permalink sp_Print

Using Excel 2019. Hopefully the file is attached this time.

Cheers
Sue

Avatar
Sue H.

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 10, 2023
sp_UserOfflineSmall Offline
4
January 12, 2023 - 2:10 pm
sp_Permalink sp_Print sp_EditHistory

So I think I figured it out, currently doing some test to make sure, but so far, so good.

=IF(AND($D4=Storage!$M$6),"yes", IF(AND($E4>=Storage!$M$5,$E4=Storage!$M$5,$D4<=Storage!$M$6),"yes","no")))

(Storage M5 holds the Monday of two weeks in arrears from today's date and Storage M6 holds the Friday of 4 weeks ahead of today's date.

On the Data Storage tab, I added in a new column within the table, using this formula. The column then holds a yes, to those tasks that meet the parameter.

On the Dashboard, within the pivot table, I used the new column as a filter only (doesn't look pretty, having the filter displaying), but at least the task list within the pivot only includes the tasks that fit within the session.

If anyone has a neater way of doing this, please let me know.
Note. I had the logics statements in reverse order and it didn't work, so swapped logic statement 3 with statement 1 and it then worked.

Cheers
Sue

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: mymalone, Riny van Eekelen, Ivan Kulubya, Vijay Vardhan
Guest(s) 80
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1431
Anders Sehlstedt: 845
Velouria: 574
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 213
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 185
Newest Members:
Vicky Otosnika
Abhishek Singh
Kevin Sojourner
Kara Weiss
And Woox
Armani Quenga
moshood bello
annelies b
James1989
lucy gilmour
Forum Stats:
Groups: 3
Forums: 24
Topics: 6045
Posts: 26523

 

Member Stats:
Guest Posters: 49
Members: 31492
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information
  • 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
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

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.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We wonโ€™t spam you.

x