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 / Gallery row hidden if ...
Power Apps
Unanswered

Gallery row hidden if value in field = yes

(0) ShareShare
ReportReport
Posted on by 121

I am trying to create a app where if the user deletes the record it will archive it instead of removing it.

 

I have a text field in the table called visible which is defaulted to yes when the record is created.

 

I am using a Patch command to update this to No if the user requests it deleted / removed.

 

My Items property is using the following code. 

 

Sort(Filter(TableComms,'Created By'.Email=User().Email,'Log Date'>=dte_StartDate_2.SelectedDate,'Log Date'<=dte_EndDate_2.SelectedDate),'Log Date',SortOrder.Descending)

 

I have a date function which allows the user to change the selected dates.

 

Is it possible to utilise the visible aspect of the Gallery to hide records that have No in the field.

 

Failing that where would it be placed within the code if it was required within the items.

 

Thanks

Categories:
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Markswan20 

     

    Try this:

    Sort(
     Filter(
     TableComms,
     'Created By'.Email=User().Email,
     'Log Date'>=dte_StartDate_2.SelectedDate,
     'Log Date'<=dte_EndDate_2.SelectedDate,
     visible="Yes" // This part will only select records where visible=Yes
     ),
     'Log Date',
     SortOrder.Descending
    )

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard