+ Reply to Thread
Results 1 to 5 of 5

Power BI Date Column Sorting

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

    Power BI Date Column Sorting

    Hi, I have a date column over multiple years, date format dd / mm/ yyyy ,

    I've have just tried sorting 'ascending' , which does not give the correct results, I've tried soring by another column, so first year but this returned a circular error message, are dates in pbi not the same as excel, there's a lot of information, but none seem to explain what's going on, it may say sort by month number but if it's more than one year will this work.

    Richard.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Power BI Date Column Sorting

    Are your dates real dates ( right aligned) or text looking like dates?
    Post a sample sheet ( no pics please)

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

    Re: Power BI Date Column Sorting

    They are 'real dates' , I have since got it to sort the dates, I thin what I was doing wrong was sorting the dates, but then sorting the 'day' by weekday number which seemed to throw everything wrong, I have since built one starting in pq with an index column , base 0, so this should be a uniqe identifier for each date, I can't attach the file as it's pbi.

    if you have any advice on building sorting date table I'd be grateful, will leave this open for a while.

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

    Re: Power BI Date Column Sorting

    FYI: to post a PBIX file, zip it first.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    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
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    610

    Re: Power BI Date Column Sorting

    I had n't marked it solved as I thought I might get some more suggestions,

    RD

+ 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. Power query Date Column Starting today
    By Dicken in forum Office 365
    Replies: 7
    Last Post: 05-02-2022, 12:28 PM
  2. [SOLVED] Power Query error handling in date column
    By DystopiaRelic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-16-2022, 04:07 PM
  3. Power Query error handling in date column
    By DystopiaRelic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2022, 08:43 AM
  4. Power Query conditional column on date
    By aldenes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-28-2020, 11:38 PM
  5. [SOLVED] Power Query Sorting by Date not sorting correctly
    By kersplash in forum Excel General
    Replies: 5
    Last Post: 08-20-2018, 02:59 AM
  6. Replies: 4
    Last Post: 04-26-2018, 11:35 AM
  7. [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

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