This content has been marked as final. Show 2 replies
Amount/NumberOfMonths1*12 as AnnualValue,
date(if(len(trim([NumberOfMonths1]))=0, "NumberOfMonths2", "NumberOfMonths1")) as NumberOfMonths1,
(txt, utf8, embedded labels, delimiter is ',', msq)
I would like to have AnnualValue field always populated. Sometimes it is not because NumberOfMonths1 is empty. My idea is that if NumberOfMonths1 is empty there will be the backup field called NumberOfMonths2 which can be used in this occasion (this field has fewer data overall but in cases where NumberOfMonths1 is empty, NumberOfMonths2 is always there).