web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    Filtering Data in Power Apps
    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
    Filtering Data in Power Apps
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 242

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 83 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 68 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans