cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Nora
Level: Powered On

Filter date

I have visitor app and I want to show only visitors today

 

Here is my sharepoint custom list Vierailijat

custom list.PNG

 

Now my BrowseGallery1 shows everyhing and the code is

SortByColumns(Filter(Vierailijat; StartsWith(Title; TextSearchBox1.Text)); "Title"; If(SortDescending1; Descending; Ascending))

 

Also I changed Title field name to Isäntä.

 

How can I show only visitors today (using saapumis

1 ACCEPTED SOLUTION

Accepted Solutions
Dawidvh
Level 10

Re: Filter date

Hi @Nora 

 

The most reliable way that we are using for date filters in SharePoint, is to delegate the work to flow and then return the result to PowerApps.

Below is a video to show this:

https://youtu.be/m_j_xN7-LjU

 

Let me know if you don't come right.

 

Dawid van Heerden
Follow on Twitter: @davestechtips
Subscribe to YouTube: https://www.youtube.com/davestechtips?sub_confirmation=1
**If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.

View solution in original post

3 REPLIES 3
Nora
Level: Powered On

Re: Filter date

I changed to code

 

SortByColumns( Vierailijat; "Saapumisaika"; Descending )

 

I still have problem, because I want to show visitors only today

Dawidvh
Level 10

Re: Filter date

Hi @Nora 

 

The most reliable way that we are using for date filters in SharePoint, is to delegate the work to flow and then return the result to PowerApps.

Below is a video to show this:

https://youtu.be/m_j_xN7-LjU

 

Let me know if you don't come right.

 

Dawid van Heerden
Follow on Twitter: @davestechtips
Subscribe to YouTube: https://www.youtube.com/davestechtips?sub_confirmation=1
**If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.

View solution in original post

Community Support Team
Community Support Team

Re: Filter date

Hi @Nora ,

Do you want to filter your Gallery Items whose "Saapumisaika" column value is today?

 

I have made a test on my side, please modify your formula as below:

 

SortByColumns(
Filter(Vierailijat; StartsWith(Title; TextSearchBox1.Text); Saapumisaika = Today());
"Title";
If(SortDescending1; Descending; Ascending)
)

or

SortByColumns(
              Filter(Vierailijat; StartsWith(Title; TextSearchBox1.Text); Text(Saapumisaika, "yyyymmdd") = Text(Today(),"yyyymmdd")); 
              "Title"; 
              If(SortDescending1; Descending; Ascending)
)

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,007)