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

Hello,

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
John HeckAsked:
Who is Participating?
 
Keyboard CowboyConnect With a Mentor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.