cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nemanjasovic011
Frequent Visitor

Display Filtered items from SharePoint list as Items in Dropdown

Hello,

 

I have a situation where a Power Apps dropdown is tied to a data source which is SharePoint list. I would like to be able to display filtered items from SP(not all of them) as options in the dropdown. For example, show 'title' as selection option in dropdown only for rows where SP column StartDate < Today(). I am not able to find a way to do this on the web despite the fact that it appears to be a simple problem. Again, I need only only a filtered set of SP items(based on date) to be showing in the dropdown.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @nemanjasovic011 ,

Something like this should do it

Filter(
   YourSPListName,
   DateDiff(
      StartDate,
      Today(),
      Days
   )>0
).Title

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User III
Super User III

Hi @nemanjasovic011 ,

Something like this should do it

Filter(
   YourSPListName,
   DateDiff(
      StartDate,
      Today(),
      Days
   )>0
).Title

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

This works - thank you - before  I mark this as an answer, if you get a chance, could you let me know how to add additional condition 'AND' on this filter for column name 'visible;=='yes'.

Answer to my question : Filter( 'Event itinerary',
DateDiff(
'Start date and time',
Today(),
Days
)>0 And ('Expose to Event Registration app'.Value = "Yes")
).'Name and Date'

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,108)