Skip to content

Commit d55f435

Browse files
committed
Add AssetId slicer, clarity edits
1 parent 5d60f40 commit d55f435

File tree

10 files changed

+43
-12
lines changed

10 files changed

+43
-12
lines changed
100 KB
Loading
13.6 KB
Loading
37.7 KB
Loading
61.1 KB
Loading
28.1 KB
Loading
30.6 KB
Loading
31.7 KB
Loading
32.3 KB
Loading
42.5 KB
Loading

articles/iot-operations/get-started-end-to-end-sample/quickstart-get-insights.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: baanders
66
ms.topic: quickstart
77
ms.custom:
88
- ignite-2023
9-
ms.date: 08/05/2024
9+
ms.date: 10/01/2024
1010

1111
#CustomerIntent: As an OT user, I want to create a visual report for my processed OPC UA data that I can use to analyze and derive insights from it.
1212
---
@@ -27,7 +27,7 @@ Before you begin this quickstart, you must complete the following quickstarts:
2727
- [Quickstart: Add OPC UA assets to your Azure IoT Operations Preview cluster](quickstart-add-assets.md)
2828
- [Quickstart: Send asset telemetry to the cloud using a dataflow](quickstart-upload-telemetry-to-cloud.md)
2929

30-
You also need a Microsoft Fabric subscription. In your subscription, you need access to a **premium workspace** with **Contributor** or above permissions.
30+
You also need a Microsoft Fabric subscription. In your subscription, you need access to a workspace with **Contributor** or above permissions.
3131

3232
Additionally, your Fabric tenant must allow the creation of Real-Time Dashboards. This is a setting that can be enabled by your tenant administrator. For more information, see [Enable tenant settings in the admin portal](/fabric/real-time-intelligence/dashboard-real-time-create#enable-tenant-settings-in-the-admin-portal).
3333

@@ -45,7 +45,7 @@ In this section, you create an eventstream that will be used to bring your data
4545

4646
Start by navigating to the [Real-Time Intelligence experience in Microsoft Fabric](https://msit.powerbi.com/home?experience=kusto).
4747

48-
Follow the steps in [Create an eventstream in Microsoft Fabric](/fabric/real-time-intelligence/event-streams/create-manage-an-eventstream?pivots=enhanced-capabilities) to create a new eventstream from the Real-Time Intelligence capabilities.
48+
Follow the steps in [Create an eventstream in Microsoft Fabric](/fabric/real-time-intelligence/event-streams/create-manage-an-eventstream?pivots=standard-capabilities#create-an-eventstream-1) to create a new eventstream from the Real-Time Intelligence capabilities.
4949

5050
After the eventstream is created, you'll see the main editor where you can start adding sources to the eventstream.
5151

@@ -55,10 +55,12 @@ After the eventstream is created, you'll see the main editor where you can start
5555

5656
Next, add your event hub from the previous quickstart as a data source for the eventstream.
5757

58-
Follow the steps in [Add Azure Event Hubs source to an eventstream](/fabric/real-time-intelligence/event-streams/add-source-azure-event-hubs?pivots=enhanced-capabilities) to add the event source. Keep the following notes in mind:
58+
Follow the steps in [Add Azure Event Hubs source to an eventstream](/fabric/real-time-intelligence/event-streams/add-source-azure-event-hubs?pivots=standard-capabilities#add-an-azure-event-hub-as-a-source) to add the event source. Keep the following notes in mind:
5959

60-
- When it's time to select a **Data format**, choose *Json* (it might be selected already by default).
61-
- Make sure to complete all the steps in the article through selecting **Publish** on the ribbon.
60+
- You'll be creating a new cloud connection with Shared Access Key authentication.
61+
- Make sure local authentication is enabled on your event hub. You can set this from its Overview page in the Azure portal.
62+
- For **Consumer group**, use the default selection (*$Default*).
63+
- For **Data format**, choose *Json* (it might be selected already by default).
6264

6365
After completing this flow, the Azure event hub is visible in the eventstream live view as a source.
6466

@@ -83,7 +85,7 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
8385

8486
1. Follow the steps in [Create an eventhouse](/fabric/real-time-intelligence/create-eventhouse#create-an-eventhouse-1) to create a Real-Time Intelligence eventhouse with a child KQL database. You only need to complete the section entitled **Create an eventhouse**.
8587

86-
1. Next, create a KQL table in your database. Call it *OPCUA* and use the following columns.
88+
1. Next, create a table in your database. Call it *OPCUA* and use the following columns.
8789

8890
| Column name | Data type |
8991
| --- | --- |
@@ -106,7 +108,7 @@ In this section, you create a KQL database in your Microsoft Fabric workspace to
106108
107109
Next, return to your eventstream view, where you can add your new KQL table as an eventstream destination.
108110
109-
Follow the steps in [Add a KQL Database destination to an eventstream](/fabric/real-time-intelligence/event-streams/add-destination-kql-database?pivots=enhanced-capabilities#direct-ingestion-mode) to add the destination. Keep the following notes in mind:
111+
Follow the steps in [Add a KQL Database destination to an eventstream](/fabric/real-time-intelligence/event-streams/add-destination-kql-database?pivots=standard-capabilities#direct-ingestion-mode) to add the destination. Keep the following notes in mind:
110112
111113
- Use direct ingestion mode.
112114
- On the **Configure** step, select the *OPCUA* table that you created earlier.
@@ -129,7 +131,7 @@ If you want, you can also view and query this data in your KQL database directly
129131
130132
## Create a Real-Time Dashboard
131133
132-
In this section, you'll create a new [Real-Time Dashboard](/fabric/real-time-intelligence/dashboard-real-time-create) to visualize your quickstart data. The dashboard will automatically allow filtering by timestamp, and will display visual summaries of temperature and humidity data.
134+
In this section, you'll create a new [Real-Time Dashboard](/fabric/real-time-intelligence/dashboard-real-time-create) to visualize your quickstart data. The dashboard will allow filtering by asset ID and timestamp, and will display visual summaries of temperature and humidity data.
133135
134136
>[!NOTE]
135137
>You can only create Real-Time Dashboards if your tenant admin has enabled the creation of Real-Time Dashboards in your Fabric tenant. For more information, see [Enable tenant settings in the admin portal](/fabric/real-time-intelligence/dashboard-real-time-create#enable-tenant-settings-in-the-admin-portal).
@@ -142,19 +144,46 @@ Then, follow the steps in the [Add data source](/fabric/real-time-intelligence/d
142144
143145
- In the **Data sources** pane, your database will be under **OneLake data hub**.
144146
147+
### Configure parameters
148+
149+
Next, configure some parameters for your dashboard so that the visuals can be filtered by asset ID and timestamp. The dashboard comes with a default parameter to filter by time range, so you only need to create one that can filter by asset ID.
150+
151+
1. Switch to the **Manage** tab, and select **Parameters**. Select **+ Add** to add a new parameter.
152+
153+
:::image type="content" source="media/quickstart-get-insights/add-parameter.png" alt-text="Screenshot of adding a parameter to a dashboard.":::
154+
155+
1. Create a new parameter with the following characteristics:
156+
* **Label**: *Asset*
157+
* **Parameter type**: *Single selection* (already selected by default)
158+
* **Variable name**: *_asset*
159+
* **Data type**: *string* (already selected by default)
160+
* **Source**: *Query*
161+
* **Data source**: Your database (already selected by default)
162+
* Select **Edit query** and add the following KQL query.
163+
164+
```kql
165+
OPCUA
166+
| summarize by AssetId
167+
```
168+
* **Value column**: *AssetId*
169+
* **Default value**: *Select first value of query*
170+
171+
1. Select **Done** to save your parameter.
172+
145173
### Create line chart tile
146174
147-
Next, add a tile to your dashboard to show a line chart of temperature and humidity over time for the selected time range.
175+
Next, add a tile to your dashboard to show a line chart of temperature and humidity over time for the selected asset and time range.
148176
149177
1. Select either **+ Add tile** or **New tile** to add a new tile.
150178
151179
:::image type="content" source="media/quickstart-get-insights/add-tile.png" alt-text="Screenshot of adding a tile to a dashboard.":::
152180
153-
1. Enter the following KQL query for the tile. This query applies a built-in filter parameter from the dashboard selector for time range, and pulls the resulting records with their timestamp, temperature, and humidity.
181+
1. Enter the following KQL query for the tile. This query applies filter parameters from the dashboard selectors for time range and asset, and pulls the resulting records with their timestamp, temperature, and humidity.
154182
155183
```kql
156184
OPCUA
157185
| where Timestamp between (_startTime.._endTime)
186+
| where AssetId == _asset
158187
| project Timestamp, Temperature, Humidity
159188
```
160189
@@ -188,11 +217,12 @@ Next, create some tiles to display the maximum values of temperature and humidit
188217
189218
1. Select **New tile** to create a new tile.
190219
191-
1. Enter the following KQL query for the tile. This query applies a built-in filter parameter from the dashboard selector for time range, and takes the highest temperature value from the resulting records.
220+
1. Enter the following KQL query for the tile. This query applies filter parameters from the dashboard selectors for time range and asset, and takes the highest temperature value from the resulting records.
192221
193222
```kql
194223
OPCUA
195224
| where Timestamp between (_startTime.._endTime)
225+
| where AssetId == _asset
196226
| top 1 by Temperature desc
197227
| summarize by Temperature
198228
```
@@ -225,6 +255,7 @@ Next, create some tiles to display the maximum values of temperature and humidit
225255
```kql
226256
OPCUA
227257
| where Timestamp between (_startTime.._endTime)
258+
| where AssetId == _asset
228259
| top 1 by Humidity desc
229260
| summarize by Humidity
230261
```

0 commit comments

Comments
 (0)