Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Filtering and Displaying Data in Power Apps Screen

(0) ShareShare
ReportReport
Posted on by

I'm building a Power Apps application with a screen (TimeCardApprovals) that displays a list of time card entries for a manager's team. The entries are pulled from a data source (TimeEntries) and include fields like Title, WeekStart, EmployeeTxt (employee name), Status.Value (status of the entry), and Manager.Email. The goal is to filter and display entries based on the selected employee, time card title, and status.

Requirements

  1. Filter Data Based on Selected Item: When a user clicks an arrow (NextArrow5) next to a time card in a gallery, it should set that item as the "selected" time card (selectedTimeCard) and navigate to another screen (TimeCardContinue).
  2. Dynamic Filtering on the Target Screen: On the TimeCardContinue screen, I want to filter the TimeEntries data based on the properties of selectedTimeCard (like Title and EmployeeTxt) and the status passed through a variable (varStatus).
  3. Interactive Filtering on the Main Screen: On the main screen (TimeCardApprovals), I'd like to add additional dropdowns for filtering by status, employee, and possibly by date, to dynamically update the displayed data based on the user's selections.

Current Setup

  1. OnSelect for NextArrow5:

    • Sets selectedTimeCard to the current item (ThisItem) in the gallery.
    • Navigates to TimeCardContinue, passing varStatus based on the currently selected tab.
  2. OnVisible for TimeCardContinue:

    • Attempts to filter TimeEntries based on selectedTimeCard properties (Title and EmployeeTxt) and varStatus.
    • The filtered data is stored in a collection (selectedTimeEntries), which is bound to the gallery on the TimeCardContinue screen.

Problems Encountered

  1. Field Not Recognized (EmployeeTxt):
    • selectedTimeCard.EmployeeTxt is not always recognized or accessible. It appears as if EmployeeTxt is sometimes not present in selectedTimeCard, causing filtering issues.
  2. Inconsistent Filtering Behavior:
    • When the TimeCardContinue screen loads, the selectedTimeEntries collection does not consistently reflect the correct, filtered data. Entries from other employees or statuses sometimes appear, indicating a filtering issue.
  3. Dynamic Filtering Complexity:
    • Adding dropdown filters (e.g., for status and employee) on the main screen to further refine the entries displayed has introduced complexity. The goal is for these filters to update selectedTimeEntries in real-time as users make new selections.

Attempts to Resolve

  1. Field Verification:

    • Verified field names in TimeEntries and ensured that EmployeeTxt and Title exist and match exactly. However, EmployeeTxt is still inconsistently accessible from selectedTimeCard.
  2. Debugging with Labels:

    • Added temporary labels to display selectedTimeCard.Title and selectedTimeCard.EmployeeTxt, confirming that these fields sometimes don’t populate as expected.
  3. Workaround Attempts:

    • Tried setting selectedTimeCard in various ways and wrapping fields in Text() to enforce type compatibility, but without consistent success.

Desired Outcome

  1. Reliable Filtering: Ensure that when navigating to TimeCardContinue, only entries related to the selected employee (EmployeeTxt), time card title (Title), and status (varStatus) appear in selectedTimeEntries.
  2. Dynamic User Filtering: Allow users to filter TimeEntries dynamically on the main screen (TimeCardApprovals) using dropdowns for Status, Employee, and possibly date range, with results updating in real-time.

Community Help Needed

I'm looking for advice on:

  1. Ensuring Consistent Access to selectedTimeCard.EmployeeTxt for reliable filtering.
  2. Best Practices for Setting and Using Filtered Collections across screens in Power Apps, especially with complex filtering criteria.
  3. Dynamic Filtering Techniques that allow users to interactively adjust filters on the main screen and have the gallery update immediately.

Any insights or workarounds that could help resolve these filtering issues would be greatly appreciated!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1