Skip to content

Commit bad2366

Browse files
committed
Draft of SQL query article
1 parent f0b43c1 commit bad2366

File tree

9 files changed

+45
-5
lines changed

9 files changed

+45
-5
lines changed
0 Bytes
Loading
20.4 KB
Loading
15.5 KB
Loading
54.3 KB
Loading
8.08 KB
Loading
13.4 KB
Loading

articles/data-explorer/power-bi-connector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ First, you connect to the Azure Data Explorer help cluster, then you bring in a
5555
| Data connectivity mode | *DirectQuery* | Determines whether Power BI imports the data or connects directly to the data source. |
5656
| | | |
5757

58-
1. If you don't already have a connection to the help cluster, sign in. Use an organizational account or a Microsoft account, then select **Connect**.
58+
1. If you don't already have a connection to the help cluster, sign in. Sign in with an organizational account, then select **Connect**.
5959

6060
![Sign in](media/power-bi-connector/sign-in.png)
6161

articles/data-explorer/power-bi-sql-query.md

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: 'Quickstart: Visualize data using the Azure Data Explorer connector for Power BI'
3-
description: 'In this quickstart, you learn how to use one of the three options for visualizing data in Power BI: the Power BI connector for Azure Data Explorer.'
2+
title: 'Quickstart: Visualize data using a SQL query in Power BI'
3+
description: 'In this quickstart, you learn how to use one of the three options for visualizing data in Power BI: a SQL query against an Azure Data Explorer cluster.'
44
services: data-explorer
55
author: orspod
66
ms.author: v-orspod
@@ -16,7 +16,7 @@ ms.date: 11/14/2018
1616

1717
Azure Data Explorer is a fast and highly scalable data exploration service for log and telemetry data. Power BI is a business analytics solution that lets you visualize your data and share the results across your organization.
1818

19-
Azure Data Explorer provides three options for connecting to data in Power BI: use the built-in connector, import a query from Azure Data Explorer, or use a SQL query. This quickstart shows you how to use the built-in connector to get data and visualize it in a Power BI report.
19+
Azure Data Explorer provides three options for connecting to data in Power BI: use the built-in connector, import a query from Azure Data Explorer, or use a SQL query. This quickstart shows you how to use a SQL query to get data and visualize it in a Power BI report.
2020

2121
If you don't have an Azure subscription, create a [free Azure account](https://azure.microsoft.com/free/) before you begin.
2222

@@ -32,6 +32,46 @@ You need the following to complete this quickstart:
3232

3333
First, you connect to the Azure Data Explorer help cluster, then you bring in a subset of the data from the *StormEvents* table. [!INCLUDE [data-explorer-storm-events](../../includes/data-explorer-storm-events.md)]
3434

35+
You typically use the native query language with Azure Data Explorer, but it also supports SQL queries, which you'll use here. Azure Data Explorer translates the SQL query into a native query for you.
36+
37+
1. In Power BI Desktop, on the **Home** tab, select **Get Data** then **More**.
38+
39+
![Get data](media/power-bi-sql-query/get-data-more.png)
40+
41+
1. Search for *Azure SQL Database*, select **Azure SQL Database** then **Connect**.
42+
43+
![Search and get data](media/power-bi-sql-query/search-get-data.png)
44+
45+
1. On the **SQL Server database** screen, fill out the form with the following information.
46+
47+
![Database, table, query options](media/power-bi-sql-query/database-table-query.png)
48+
49+
**Setting** | **Value** | **Field description**
50+
|---|---|---|
51+
| Server | *help.kusto.windows.net* | The URL for the help cluster (without *https://*). For other clusters, the URL is in the form *\<ClusterName\>.\<Region\>.kusto.windows.net*. |
52+
| Database | *Samples* | The sample database that is hosted on the cluster you're connecting to. |
53+
| Data connectivity mode | *Import* | Determines whether Power BI imports the data or connects directly to the data source. |
54+
| Command timeout | Leave blank | How long the query runs before it throws a timeout error. |
55+
| SQL statement | Copy the query below this table | The SQL statement that Azure Data Explorer translates into a native query. |
56+
| Other options | Leave as default values | Options aren't applicable to Azure Data Explorer clusters. |
57+
| | | |
58+
59+
```SQL
60+
SELECT TOP 1000 *
61+
FROM StormEvents
62+
ORDER BY DamageCrops DESC
63+
```
64+
65+
1. If you don't already have a connection to the help cluster, sign in. Sign in with a Microsoft account, then select **Connect**.
66+
67+
![Sign in](media/power-bi-sql-query/sign-in.png)
68+
69+
1. On the **help.kusto.windows.net: Samples** screen, select **Load**.
70+
71+
![Load data](media/power-bi-sql-query/load-data.png)
72+
73+
The table opens in the main Power BI window, in report view, where you can create reports based on the sample data.
74+
3575
## Visualize data in a report
3676
3777
[!INCLUDE [data-explorer-power-bi-visualize-basic](../../includes/data-explorer-power-bi-visualize-basic.md)]

includes/data-explorer-power-bi-visualize-basic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: mblythe
88

99
Now that you have data in Power BI Desktop, you can create reports based on that data. You'll create a simple report with a column chart that shows crop damage by state.
1010

11-
1. On the left side of the main window, select the report view.
11+
1. On the left side of the main Power BI window, select the report view.
1212

1313
![Report view](media/data-explorer-power-bi-visualize-basic/report-view.png)
1414

0 commit comments

Comments
 (0)