You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-operations/connect-to-cloud/howto-create-dataflow.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -592,9 +592,11 @@ To filter the data on a condition, you can use the `filter` stage. The condition
592
592
| Filter condition | The condition to filter the data based on a field in the source data. |
593
593
| Description | Provide a description for the filter condition. |
594
594
595
-
In the filter condition field, type `@` or select **Ctrl + Space** to select datapoints from a dropdown. You can also enter $metadata headers using the format `@$metadata.<header>`.
595
+
In the filter condition field, type `@` or select **Ctrl + Space** to select datapoints from a dropdown.
596
596
597
-
The condition can use the fields in the source data. For example, you could use a filter condition like `temperature > 20` to filter data less than or equal to 20 based on the temperature field.
597
+
You can access MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. For more information, see [field references](concept-dataflow-mapping.md#field-references).
598
+
599
+
The condition can use the fields in the source data. For example, you could use a filter condition like `@temperature > 20` to filter data less than or equal to 20 based on the temperature field.
598
600
599
601
1. Select **Apply**.
600
602
@@ -660,8 +662,10 @@ You can use the **Compute** transform to apply a formula to the source data. Thi
660
662
| Last known value | Optionally, use the last known value if the current value isn't available. |
661
663
662
664
663
-
You can enter or edit a formula in the **Formula** field. The formula can use the fields in the source data. Type `@` or select **Ctrl + Space** to select datapoints from a dropdown. You can also enter $metadata headers using the format `@$metadata.<header>`.
664
-
665
+
You can enter or edit a formula in the **Formula** field. The formula can use the fields in the source data. Type `@` or select **Ctrl + Space** to select datapoints from a dropdown.
666
+
667
+
You can access MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. For more information, see [field references](concept-dataflow-mapping.md#field-references).
668
+
665
669
The formula can use the fields in the source data. For example, you could use the `temperature` field in the source data to convert the temperature to Celsius and store it in the `temperatureCelsius` output field.
666
670
667
671
1. Select **Apply**.
@@ -682,6 +686,8 @@ You can rename a datapoint using the **Rename** transform. This operation is use
682
686
| New datapoint name | Enter the new name for the datapoint. |
683
687
| Description | Provide a description for the transformation. |
684
688
689
+
You can access MQTT metadata properties using the format `@$metadata.user_properties.<property>` or `@$metadata.topic`. You can also enter $metadata headers using the format `@$metadata.<header>`. For more information, see [field references](concept-dataflow-mapping.md#field-references).
690
+
685
691
1. Select **Apply**.
686
692
687
693
#### New property
@@ -704,6 +710,8 @@ You can add a new property to the source data using the **New property** transfo
704
710
705
711
# [Bicep](#tab/bicep)
706
712
713
+
You can access MQTT metadata properties using the format `$metadata.user_properties.<property>` or `$metadata.topic`. You can also enter $metadata headers using the format `$metadata.<header>`. For more information, see [field references](concept-dataflow-mapping.md#field-references).
714
+
707
715
For example, you could use the `temperature` field in the source data to convert the temperature to Celsius and store it in the `temperatureCelsius` field. You could also enrich the source data with the `location` field from the contextualization dataset:
You can access MQTT metadata properties using the format `$metadata.user_properties.<property>` or `$metadata.topic`. You can also enter $metadata headers using the format `$metadata.<header>`. For more information, see [field references](concept-dataflow-mapping.md#field-references).
740
+
731
741
For example, you could use the `temperature` field in the source data to convert the temperature to Celsius and store it in the `temperatureCelsius` field. You could also enrich the source data with the `location` field from the contextualization dataset:
0 commit comments