+ Reply to Thread
Results 1 to 8 of 8

Filter query table based on dates

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Filter query table based on dates

    Hey

    How can I filter the query table within "From" "To" dates, to show only running and next 3 weeks records?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,421

    Re: Filter query table based on dates

    You have given us two identical tables. Where have you manually mocked up what you want?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: Filter query table based on dates

    The query table ( right one ), not the normal table
    its ready just need to filter

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Filter query table based on dates

    Your next line of Mcode is:

    Please Login or Register  to view this content.
    Clcik on the drop down arrow in the To column and select "Is In Next"
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: Filter query table based on dates

    @alansidman This will only show the records will end in next 3 weeks, but it will not show all running records
    example, from 25/9/2021 to 30/10/2021, this will run in next 3 week but it will not show, because it will not end in next 3 weeks

    explain again I need to show running records+ the records will start in next 3 weeks

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Filter query table based on dates

    Sorry, cannot figure out syntax for your needs. If you can provide the excel syntax if you were doing an if then statement, I might be able to get it. But right now, I don't see the syntax for your needs. Good Luck.

  7. #7
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    919

    Re: Filter query table based on dates

    I think this will work but how to go with it?
    FILTER : IF "FROM" in the next 3 weeks OR "FROM" >= TODAY AND "TO" <= TODAY

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Filter query table based on dates

    Will work on this later today. Got errands, etc to do.

    Alan

    Edit: Back and worked on this for an hour with no success. Will ask other for help.
    Last edited by alansidman; 09-17-2021 at 09:56 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. [SOLVED] VBA code to filter pivot table by rows containing dates for dates < 60 months old
    By BrokenDome in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2019, 01:28 PM
  2. Replies: 1
    Last Post: 06-08-2019, 08:48 PM
  3. Filter recognizes dates, but Pivot Table filter does not
    By maw230 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-07-2016, 04:18 PM
  4. Filter Pivot Table Based on Current Dates
    By mrblue1123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2016, 06:47 PM
  5. MS QUERY - Filter To Show Only Dates Within This Month
    By Rosco88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2015, 06:20 AM
  6. Pivot Table: Filter dates based on a date in another cell
    By justinua in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2015, 05:47 PM
  7. Select Multiple Dates In Report Filter Pivot Table But Dates Are Not Static
    By biasedobserver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2014, 03:38 PM

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