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 Apps
Answered

sort gallery

(0) ShareShare
ReportReport
Posted on by 18

hi to every body.

i have a list called "trains",in which i have a column "date of travel".

i made also a calendar view ....so some days are empty.

may be i travel 1/7/2023 and then 1/9/2023 

i built an app to show all records but the one made with the wizard shows even blank records.

i found two different formulas :

-SortByColumns(Filter([@'TRAINS'];  StartsWith(LASTNAME TextSearchBox1.Text)); "DATEOFTRAVEL" ; If(SortDescending1; Descending; Ascending)) - allows me to order the gallery and use the searchbox

-Filter('TRAINS'; 'DATEOFTRAVEL' >=  Today())- allow me to show only records from today towards the end.

how can i use both formulas together ????  it's driving me crazy.

thanks for your help

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @eurostar_italia,

     

    Please try the following code:

     

    SortByColumns(
     Filter([@'TRAINS'];
     StartsWith(LASTNAME TextSearchBox1.Text) && 'DATEOFTRAVEL' >= Today()
     ); 
     "DATEOFTRAVEL" ; 
     If(SortDescending1; Descending; Ascending)
    ) 

     

    See && 'DATEOFTRAVEL' >=  Today()

     

    Note: if you just want to filter out the blank records, you can swap && 'DATEOFTRAVEL' >=  Today() with && 'DATEOFTRAVEL' <> Blank()

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • eurostar_italia Profile Picture
    18 on at

    it works great!!!!! you're very kind!!! thanks a lot for you help!!!!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard