Skip to main content

Notifications

Announcements

No record found.

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
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,002 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 )
     
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju 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:

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans