Query: 'If data in a set/array/list' function [FH v7]
Posted: 02 Jan 2023 05:56
Hi,
I've got a query which lists the year of a date of a fact. I want to have a column saying if that year is a census year or not. Is there a way of doing an "in array/list" function, please, something like
=TextIf(InArray(%FACT.DATE.YEAR%, 1841, 1851, 1861, 1871, 1881, 1891, 1901, 1911, 1921, 1936),"Y","N")
rather than doing a multiple/nested OR function(s)?
Many thanks,
I've got a query which lists the year of a date of a fact. I want to have a column saying if that year is a census year or not. Is there a way of doing an "in array/list" function, please, something like
=TextIf(InArray(%FACT.DATE.YEAR%, 1841, 1851, 1861, 1871, 1881, 1891, 1901, 1911, 1921, 1936),"Y","N")
rather than doing a multiple/nested OR function(s)?
Many thanks,