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 / Nesting and Concat Sor...
Power Apps
Answered

Nesting and Concat Sort Help

(0) ShareShare
ReportReport
Posted on by 193

Hello,

I was trying to nest a gallery in a gallery, but was having difficulty. Assume because data as table

Instead I inserted a label.

 

How can I sort by EventDates? earliest date first.

Concat(Filter(Gateways, MasterID = Value(MasterID_Label.Text)&& 'Decl Dates' = Blank()), EventName& ": " & 'EventDates', "; ")

 

On one record, the label yielded.

EventA: 1/30/2024; EventB: 2/27/2024; EventC: 5/24/2023

 

Is there a way, I could implement a sort such that Event C should be first because it had the earlier date.

Categories:
I have the same question (0)
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @kgordish ,
    Try using something like below - 

    Concat(Sort(Filter(Gateways, MasterID = Value(MasterID_Label.Text)&& 'Decl Dates' = Blank()),EventName,SortOrder.Descending), EventName& ": " & 'EventDates', "; ")
  • kgordish Profile Picture
    193 on at

    @NandiniBhagya20 

    Thank you. 

    "Almost only counts in horseshoes and hand grenades."

    You helped identify I have a comma or closed ( ) not in the right place. It was driving me nuts. 

    Appreciate your fresh set of eyes. 

    Works now!

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard