+ Reply to Thread
Results 1 to 6 of 6

Power Query Concatenating a list of Dates

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    620

    Power Query Concatenating a list of Dates

    Hi, I have created a list of dates, which I want to conctenat, but to do this they need to text, so I 've ended up with this;


    Please Login or Register  to view this content.
    To get list of dates and then

    Please Login or Register  to view this content.

    My question is can I do this with only one List.Transform statement? I've attached a workbook Query TableA (3) gives best example


    Richard.
    Attached Files Attached Files
    Last edited by Dicken; 12-13-2022 at 11:48 AM. Reason: File incorrect need to remove and replace

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,918

    Re: Power Query Concatenating a list of Dates

    Yes, you can do two operations in the transform:

    Please Login or Register  to view this content.
    Rory

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    620

    Re: Power Query Concatenating a list of Dates

    Thanks again,

    RD

  4. #4
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    620

    Re: Power Query Concatenating a list of Dates

    BTW ,
    in my previous post

    Please Login or Register  to view this content.
    about adding previous and current value and then dividing by current value, which I'd used an index helper and table.selectcolumns, I received this solution,


    Please Login or Register  to view this content.
    There's a lot in there I don't understand, such as list.RemoveLastN( {0}) ? just thought you mihgt find it interesting to look over.

    RD

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,918

    Re: Power Query Concatenating a list of Dates

    The {0}&Table.Column(Source,"Unit") part creates a list starting with 0 and then adding on the Unit values. List.RemoveLastN then removes the last item by default so you end up with a list that moves all the Unit values up one and uses 0 to pad the first item.

  6. #6
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    620

    Re: Power Query Concatenating a list of Dates

    Thanks, I've been dissenting the segments to see how they fit together, I may be some time. 😣

+ 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 calculate Months between two dates
    By Dicken in forum Office 365
    Replies: 2
    Last Post: 09-30-2022, 12:12 PM
  2. [SOLVED] Concatenate list of dates in power query
    By Dicken in forum Office 365
    Replies: 6
    Last Post: 06-09-2022, 10:43 AM
  3. Dates in Power Query(Conditional Column)
    By hudson andrew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2021, 02:32 PM
  4. Replies: 8
    Last Post: 10-21-2020, 03:02 AM
  5. [SOLVED] Power Query - US and UK Dates
    By andrewc in forum Excel General
    Replies: 5
    Last Post: 11-12-2019, 03:14 PM
  6. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  7. Power Query Duration Between Two Dates
    By mielkew27 in forum Excel General
    Replies: 3
    Last Post: 04-18-2017, 01:31 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