cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Spikyface
Advocate I
Advocate 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
v-siky-msft
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
v-siky-msft
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (25,221)