web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to sort a data tab...
Power Apps
Answered

How to sort a data table in PA

(0) ShareShare
ReportReport
Posted on by 28

Hi all, hope somebody could help me with the following.

As you can see at the attachment I work with a data table in PA.

I would like to sort the entries by Trip Start date. I tried a lot meanwhile, but still not successful.

Could somebody please give me the right kick what to do ??

 

Thanx in advance,

Didi

Data table 4.JPG
Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Didi-Fischer is the Trip Start Date field actually a date data type in your source data?

  • narayan225 Profile Picture
    2,547 Moderator on at

    @Didi-Fischer 

    It seems like the date field is not actually a date data type.

     

    Cheers!

  • Didi-Fischer Profile Picture
    28 on at

    Hi Amik, yes there are REAL dates data !

  • Didi-Fischer Profile Picture
    28 on at

    next problem is just popping up...

    how can I hide rows where Trip End is in the past ???

    Thanx for help again !!

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Didi-Fischer below is a basic example of the syntax you need to apply to the Items property of the Data Table. Have you attempted this?

     

    Sort(
     'Your Data',
     'Your Date Field',
     SortOrder.Ascending
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

  • Didi-Fischer Profile Picture
    28 on at

    Hi,

    That was the kick I needed 😄

    Because I am working with european system I need to put ";" instead of "," than it works. Many thanks.

    Any idea for the hiding problem ???

  • Verified answer
    Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @Didi-Fischer - you need to apply a Filter and then wrap the resulting table with the a Sort function. E.g.

     

    Sort(
     Filter(
     'Yuor Data';
     'Your Date Field' > Today()
     );
     'Your Date Field';
     SortOrder.Ascending
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard