Using a Filter on a view that compares a Choice field value to a calculated value.


I am trying to use a Filter on a view that compares a Choice field value to a calculated value.  The Choice field value is a list of years:
2015, 016, 2017, 2018, 2019, 2020, etc.  In the Filter section here is the selection criteria under Show items only when the following is true:
  --  Show the items when column:
  --  Year (indexed)
  --  is equal to
  --  text(year([Today]),"0000")

There is nothing else selected below this option on the Edit View page in SharePoint.

It should be returning all documents that have the value of 2017 in the Year (indexed) column, but the document library is blank.

Thank you in advance for your assistance.

John HeckAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FreddSharePoint JediCommented:
Are you trying to do that calculation (text([Today],"0000") in the view filter itself or is that another column.  Calculated columns are notorious for only updating when the item is new or is modified so [today] won't work in a calculated column and give you the desired result normally.  I'm not sure of the behavior dynamically in a view but I doubt this approach will work there either in my experience.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.