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

Model Driven App - Filter View column to earlier than today

Within a model driven app, is it possible to filter a view on a custom entity so that it filters records which have a date earlier than today (and dynamically works out what date it is at runtime)?

 

I had a look for the option but can't see it, it only allows me to use a fixed date

 

OnOrBeforeToday.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Spikyface ,

 

Your requirement can be implemented by Out-Of-Box Older Than X Days criterion.

By using the following two filter conditions on any entity’s date field will provide the list of all records Older Than Today:

Snipaste_2020-10-09_15-55-38.png

We need the additional Yesterday filter because the Older Than X Days operator only accepts a value from 1 to 500 and doesn’t support 0.

Hope this helps.

Sik

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @Spikyface ,

 

Your requirement can be implemented by Out-Of-Box Older Than X Days criterion.

By using the following two filter conditions on any entity’s date field will provide the list of all records Older Than Today:

Snipaste_2020-10-09_15-55-38.png

We need the additional Yesterday filter because the Older Than X Days operator only accepts a value from 1 to 500 and doesn’t support 0.

Hope this helps.

Sik

View solution in original post

@v-siky-msft that's great, thanks for your help!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (26,633)