Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Filtering Data in Power Apps

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,003 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,908 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans