Good morning,
The best way to explain is to show below examples, with the remark that only the first one works and does exactly what I wished for:
timeseries var1 = sum(.y.z, {var2 = sum(x.yz)}
| fieldsAdd var3 = (var1 [] / var2 [] * 100)
| fieldsRemove var1, var2
timeseries var1 = sum(.y.z, {var2 = sum(x.yz)}
| fieldsAdd var3 = (var1 [] / var2 [] * 100)
| fields var3
timeseries var1 = sum(.y.z, {var2 = sum(x.yz)}
| fieldsAdd var3 [] = (var1 [] / var2 [] * 100)
| fieldsRemove var1, var2
timeseries var1 = sum(.y.z, {var2 = sum(x.yz)}
| fieldsAdd var3 [] = (var1 [] / var2 [] * 100)
| fields var3
So my question is simple why don’t I need the extra “[]” in the fields add, and why can’t I use the “fields 3”
Who can shed some light on this?
KR Henk



