cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
venseben
Helper V
Helper V

Filter on date range and number range

 Hi all. I have a PowerApps with a SharePoint list as a data connection. Thanks to a great video from Reza Dorrani I have made a filter to a gallery based on a date range. That works just fine. What I need to do is to filter those items where Modified is greater than Created. I have converted the Created and Modified data to numbers like "yyyymmddhhmm" and it looks like this 202103311233.

 

I need a filter that only gives me the Items that a modified in a given date range, and where the created number is less that the modified number. As you can see on this picture the filter returns itmes where the created and modified number is equal, but I need to only show the items where the modified number is greater than the created number. How can I acchieve this?

FilterGallery.jpg

 

Thanks in advance

 

/Frank

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @venseben ,

 

I don’t think you need to convert it to "yyyymmddhhmm".

Please see the steps below.

 

1\ This is my list 'LIST105'.

v-xiaochen-msft_0-1617779619923.png

 

2\ Add 2 DatePicker control. 'DatePicker1' and 'DatePicker2'.

 

3\ Add a gallery control and set its Items property to:

Filter(AddColumns(LIST105,"Test",Modified),Created<Modified,Modified<=DatePicker2.SelectedDate,Modified>=DatePicker1.SelectedDate)

 

4\ The result is as follows:

v-xiaochen-msft_1-1617779817899.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @venseben ,

 

I don’t think you need to convert it to "yyyymmddhhmm".

Please see the steps below.

 

1\ This is my list 'LIST105'.

v-xiaochen-msft_0-1617779619923.png

 

2\ Add 2 DatePicker control. 'DatePicker1' and 'DatePicker2'.

 

3\ Add a gallery control and set its Items property to:

Filter(AddColumns(LIST105,"Test",Modified),Created<Modified,Modified<=DatePicker2.SelectedDate,Modified>=DatePicker1.SelectedDate)

 

4\ The result is as follows:

v-xiaochen-msft_1-1617779817899.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,168)