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

Ungroup For All

(0) ShareShare
ReportReport
Posted on by 174

Hi,

 

Im using the following code to filter a gallery, it works great however if the dropdown im using has no values related to the database (SQLHOLEIDDropdown is a combobox i use to filter two galleries with the same IDs) it creates blank entries in gallery, which creates an issue for me down the track with patching from the gallery.

 

Ungroup(
 ForAll(
 SQLHOLEIDDropdown.SelectedItems As aSel,
 SortByColumns(
 Filter(
 TempExpGeologyData,
 HOLEID = aSel.HOLEID
 ),
 "Created"
 )
 ),
 "Value"
)

 

Can someone help me modify the code so it doesnt include blank row entries if i have selected them in the combobox?

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @SomeoneAwesome ,

     

    Please try:

    Filter(

    Ungroup(

       ForAll(

          SQLHOLEIDDropdown.SelectedItems As aSel,

          SortByColumns(

             Filter(

                TempExpGeologyData,

                HOLEID = aSel.HOLEID

             ),

             "Created"

          )

       ),

       "Value"

    ),!IsBlank(Created)

    )

     

    Best Regards,

    Wearsky

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard