web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Filtering Data in Power Apps

(0) ShareShare
ReportReport
Posted on by
Hello,
 
i want to create an app with two Excel Sheets: 

1) Contains a list of Shops 
2) Contains the employees at every shop

So there are two screens. On the first screen you select the shop and on the second screen you see all the employees at the selected shop with their data.
On the second screen there are also two filters that filter the month and year, so you can see which employee worked in which year and month at the
shop.

For filtering the selected shop on the second screen i tried the code:
 

Filter(
    Assignments;
    Month.Value = drpCurrentMonth.Selected.Value &&
    Year.Value = Text(drpCurrentYear.Selected.Value) &&
    Shop.Value = galShopList.Selected.Name  )
 
Unfortunately the code did not work. Can you please tell me how to use the right code/ filter to transition to the second screen with the right
data from the selected shop and how to filter the months and years?

Thanks!
 
 
 
//
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
//
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Hi Partner,
    Are you using a canvas app?
    If so, you need to ask questions in the following forums for further help:
  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at
    Assuming Assignments is your table name.
    Month and Year are fields from Assignments table,
     
     
    and galShopList is your gallery
    drpCurrentMonth and drpCurrentYear are drop down fields inserted outside of gallery data selection.
     
    Try this.
     
    Filter(Assignments,
        Month = drpCurrentMonth.SelectedText.Value &&
        Year = drpCurrentYear.SelectedText.Value &&
        !galShopList.Selected.Name )
     

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!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 61 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 38 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 22 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans