I want to create new view for my list. The list contains a column called Year, which is a number and contains, as name suggests, year. Eg.:
2012
2011
2010
2009
I would like create a view, where I would display only last 3 years. The <Query> element of my List Definition is:
<Query>
<Where>
<Geq>
<FieldRef Name="Year" />
<Value Type="Number"> ???? </Value>
</Geq>
</Where>
</Query>
And it gets tricky here. How to write a condition, that a number should be greater that current year minus 3? I thought it would work like in UI, so I could use:
YEAR([Today])-3