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

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
Highlighted
Super User
Super User

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
Highlighted
Frequent Visitor

Re: Filter date

I changed to code

 

SortByColumns( Vierailijat; "Saapumisaika"; Descending )

 

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

Highlighted
Super User
Super User

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

Highlighted
Community Support
Community Support

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,843)