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

John Heck
John Heck used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
SharePoint Jedi
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial