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!
 
 
 
//
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
//
I have the same question (0)
  • 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
11manish Profile Picture

11manish 174

#2
ManoVerse Profile Picture

ManoVerse 58 Super User 2026 Season 1

#3
Niki Patel Profile Picture

Niki Patel 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans