If you want to recreate the dynamic value with the value of Signal
replaced with "yes"
/"no"
You should extract the value of Signal
, translate it to "yes"
/"no"
depending on the value, and then construct a new dynamic value, which contains the translated signal, and the rest of the properties in the original dynamic value, like this:
datatable(d:dynamic)[
dynamic({'Signal':'0.0','AnotherSignal':'0.0'}),
dynamic({'Signal':'1.0','AnotherSignal':'0.0'})
]
| project bag_merge(pack("Signal", iff(d.Signal == 0.0, "No", "Yes")), d)
Output:
Column1 |
---|
{ "Signal": "No", "AnotherSignal": "0.0" } |
{ "Signal": "Yes", "AnotherSignal": "0.0" } |
If you want to extract the value of Signal
, and replace it with "yes"
/"no"
datatable(d:dynamic)[
dynamic({'Signal':'0.0','AnotherSignal':'0.0'}),
dynamic({'Signal':'1.0','AnotherSignal':'0.0'})
]
| extend UpdatedSignal = iff(d.Signal == 0.0, "No", "Yes")
d |
UpdatedSignal |
---|
{ "Signal": "0.0", "AnotherSignal": "0.0" } |
No |
{ "Signal": "1.0", "AnotherSignal": "0.0" } |
Yes |