+ Reply to Thread
Results 1 to 4 of 4

power query date format

  1. #1
    Forum Contributor
    Join Date
    11-01-2016
    Location
    Prague
    MS-Off Ver
    2013
    Posts
    121

    power query date format

    Hello Everyone,

    I have a power query issue.

    I am trying to convert my date column with below condition,

    IF day > 16, it will be 16/month/year

    Else it will be 1/month/year

    Examples : 12/May/2018 >> 1/May/2018
    18/May/2018 >> 16/May/2018
    30/May/2018 >> 16/May/2018
    5/May/2018 >> 1/May/2018

    I managed first part, but I need your help on second part.

    Any Idea ?

    Please Login or Register  to view this content.

    Thanks a lot
    Orhan

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: power query date format

    Try using #date().

    Ex:
    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    11-01-2016
    Location
    Prague
    MS-Off Ver
    2013
    Posts
    121

    Re: power query date format

    Thank you very much! It worked perfectly !


    Quote Originally Posted by CK76 View Post
    Try using #date().

    Ex:
    Please Login or Register  to view this content.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: power query date format

    You are welcome and thanks for the rep

+ 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 URL by date
    By jespo1351 in forum Excel General
    Replies: 11
    Last Post: 05-22-2018, 01:37 PM
  2. Replies: 7
    Last Post: 04-24-2018, 12:07 AM
  3. [SOLVED] Insert a date value as a Custom Column in Power Query
    By heytherejem in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-28-2018, 12:42 PM
  4. [SOLVED] Power Query Date Transformation
    By Moggzzz in forum Excel General
    Replies: 2
    Last Post: 03-21-2018, 02:47 PM
  5. Power Query Date Time
    By jcmckeon in forum Excel General
    Replies: 5
    Last Post: 09-12-2017, 02:19 PM
  6. Power Query - Filter by Date
    By brent_milne in forum Excel General
    Replies: 0
    Last Post: 03-16-2017, 10:39 AM
  7. 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

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