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

Notifications

Announcements

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

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 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 Super User 2025 Season 2 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,679 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,679 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard