+ Reply to Thread
Results 1 to 4 of 4

Filter records on date time field dynamically in power query

  1. #1
    Registered User
    Join Date
    04-14-2019
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    20

    Filter records on date time field dynamically in power query

    Hi

    I need help below query filter to dynamic dare and time filter in power query excel so that I can filter records of DATE column between a time range given dynamically taking today’s date from 5 Am and tomorrow date 4 AM.
    I am doing this manually though following query which is a manual process to filter every day changing date . How can I make it dynamic to take dates dynamically:

    #"Filtered Rows" == Table.SelectRows(#"Changed Type", each [DATE] > #datetime(2018, 6, 29, 5, 0, 0) and [DATE] < #datetime(2018, 6, 30, 4, 0, 0))

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Filter records on date time field dynamically in power query

    Use this:

    Please Login or Register  to view this content.
    Last edited by Olly; 11-06-2019 at 04:31 AM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    04-14-2019
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    20

    Red face Re: Filter records on date time field dynamically in power query

    Thanks a lot! Olly!

    Great ! thanks a lot for quick reply.

    The problem is solved....
    Last edited by saxena_mk; 11-06-2019 at 10:42 AM.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Filter records on date time field dynamically in power query

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. You may also 'Add Reputation' to those who helped you. Thanks.

+ 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] Power Query: Combine records with deliminter
    By misty15 in forum Office 365
    Replies: 4
    Last Post: 09-17-2019, 04:34 PM
  2. [SOLVED] Power Query Filter by Date Parameter
    By tkrupka in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2019, 10:08 AM
  3. Power Query Date Time
    By jcmckeon in forum Excel General
    Replies: 5
    Last Post: 09-12-2017, 02:19 PM
  4. Power Query - Filter by Date
    By brent_milne in forum Excel General
    Replies: 0
    Last Post: 03-16-2017, 10:39 AM
  5. Power Query convert Unix time to a date
    By logisteve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2015, 06:25 PM
  6. Replies: 8
    Last Post: 01-31-2013, 05:22 AM
  7. Replies: 2
    Last Post: 12-09-2011, 08:51 AM

Tags for this Thread

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