Archer GRC calculation based on date and value list fields -
i have 2 fields need calculate. 1 date field initial data received via data feed, other radio button field values: [] none; [] 6 months; [] 1 year; [] 2 years, [] 3 years; [] permanent.
i need calculate date field + radio button add 181 days 6 months, 366 1 year, 731 days 2 years, 1096 days 3 years, , show date december 31, 2099 if date permanent.
[date] + [radio button]
figured out, needed utilize archers valueof , dateformat correct calculation:
if ([radio button] = valueof([radio button],"6 months"), [date] + "181", if ([radio button] = valueof([radio button],"1 year"), [date] + "366", if ([radio button] = valueof([radio button],"2 years"), [date] + "731", if ([radio button] = valueof([radio button],"3 years"), [date] + "1096", if ([radio button] = valueof([radio button],"none"), [date], if ([radio button] = valueof([radio button],"permanent"), dateformat("12/31/2099", "mmddyyyy")))))))
Comments
Post a Comment