Sorry…this is probably so simple but my brain cannot figure it out this morning. I am working on an ingredient tracker. Folks can enter the item in lbs. or grams. Ultimately, I need the answer in grams. So I want to say "If entered in lbs, convert to grams. Otherwise, leave as grams. " I thought it might be better to have two columns (lbs and grams) and then a 3rd grams column.
(From my quick search, as lb is not a unit we use here, 1 lb = 453.59237 g)
If(
// if there's a value in thisRow.[Purchase in lbs.]
thisRow.[Purchase in lbs.],
// converts the lb(s) in g
thisRow.[Purchase in lbs.] * 453.59237,
// else, return the g
thisRow.[Purchase in grams]
)
Or
If(
thisRow.[Purchase in lbs.].IsNotBlank(),
// converts the lb(s) in g
thisRow.[Purchase in lbs.] * 453.59237,
// else, return the g
thisRow.[Purchase in grams]
)