Skip to content

Commit 7293736

Browse files
committed
Finish SQL and blank query QS
1 parent bad2366 commit 7293736

File tree

11 files changed

+89
-49
lines changed

11 files changed

+89
-49
lines changed
18.9 KB
Loading
26.4 KB
Loading
23.2 KB
Loading
32.5 KB
Loading
36.5 KB
Loading

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

Lines changed: 0 additions & 44 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ If you no longer need the report you created for this quickstart, delete the Pow
8888
## Next steps
8989

9090
> [!div class="nextstepaction"]
91-
> [Quickstart: Visualize data using an imported query in Power BI](power-bi-blank-query.md)
91+
> [Quickstart: Visualize data using an imported query in Power BI](power-bi-imported-query.md)
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
title: 'Quickstart: Visualize data using a query imported into Power BI'
3+
description: 'In this quickstart, you learn how to use one of the three options for visualizing data in Power BI: importing a query from Azure Data Explorer.'
4+
services: data-explorer
5+
author: orspod
6+
ms.author: v-orspod
7+
ms.reviewer: mblythe
8+
ms.service: data-explorer
9+
ms.topic: quickstart
10+
ms.date: 11/14/2018
11+
12+
#Customer intent: As a data analyst, I want to understand connection options in Power BI so I can choose the option most appropriate to my scenario.
13+
---
14+
15+
# Quickstart: Visualize data using a query imported into Power BI
16+
17+
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.
18+
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.
20+
21+
If you don't have an Azure subscription, create a [free Azure account](https://azure.microsoft.com/free/) before you begin.
22+
23+
## Prerequisites
24+
25+
You need the following to complete this quickstart:
26+
27+
* An organizational email account that is a member of Azure Active directory, so you can connect to the [Azure Data Explorer help cluster](https://dataexplorer.azure.com/clusters/help/databases/samples).
28+
29+
* [Power BI Desktop](https://powerbi.microsoft.com/get-started/) (select **DOWNLOAD FREE**)
30+
31+
* [Azure Data Explorer desktop app](/azure/kusto/tools/kusto-explorer)
32+
33+
## Get data from Azure Data Explorer
34+
35+
First, you create a query in the Azure Data Explorer desktop app and export it for use in Power BI. Then, you connect to the Azure Data Explorer help cluster, and bring in a subset of the data from the *StormEvents* table. [!INCLUDE [data-explorer-storm-events](../../includes/data-explorer-storm-events.md)]
36+
37+
1. In a browser, go to [https://help.kusto.windows.net/](https://help.kusto.windows.net/) to launch the Azure Data Explorer desktop app.
38+
39+
1. In the desktop app, copy the following query into the upper-right query window then run it.
40+
41+
```Kusto
42+
StormEvents
43+
| sort by DamageCrops desc
44+
| take 1000
45+
```
46+
47+
The first few rows of the result set should look similar to the following image.
48+
49+
![Query results](media/power-bi-imported-query/query-results.png)
50+
51+
1. On the **Tools** tab, select **Query to Power BI** then **OK**.
52+
53+
![Export query](media/power-bi-imported-query/export-query.png)
54+
55+
1. In Power BI Desktop, on the **Home** tab, select **Get Data** then **Blank query**.
56+
57+
![Get data](media/power-bi-imported-query/get-data.png)
58+
59+
1. In the Power Query Editor, on the **Home** tab, select **Advanced editor**.
60+
61+
1. In the **Advanced editor** window, paste the query you exported then select **Done**.
62+
63+
![Paste query](media/power-bi-imported-query/paste-query.png)
64+
65+
1. In the main Power Query Editor window, select **Edit credentials**. Select **Organizational account**, sign in, then select **Connect**.
66+
67+
![Edit credentials](media/power-bi-imported-query/edit-credentials.png)
68+
69+
1. On the **Home** tab, select **Close & Apply**.
70+
71+
![Close and apply](media/power-bi-imported-query/close-apply.png)
72+
73+
## Visualize data in a report
74+
75+
[!INCLUDE [data-explorer-power-bi-visualize-basic](../../includes/data-explorer-power-bi-visualize-basic.md)]
76+
77+
## Clean up resources
78+
79+
If you no longer need the report you created for this quickstart, delete the Power BI Desktop (.pbix) file.
80+
81+
## Next steps
82+
83+
> [!div class="nextstepaction"]
84+
> [Quickstart: Visualize data using an imported query in Power BI](power-bi-sql-query.md)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You typically use the native query language with Azure Data Explorer, but it als
5353
| Data connectivity mode | *Import* | Determines whether Power BI imports the data or connects directly to the data source. |
5454
| Command timeout | Leave blank | How long the query runs before it throws a timeout error. |
5555
| 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. |
56+
| Other options | Leave as default values | Options don't apply to Azure Data Explorer clusters. |
5757
| | | |
5858

5959
```SQL
@@ -83,4 +83,4 @@ If you no longer need the report you created for this quickstart, delete the Pow
8383
## Next steps
8484
8585
> [!div class="nextstepaction"]
86-
> [Quickstart: Visualize data using an imported query in Power BI](power-bi-blank-query.md)
86+
> [Quickstart: Visualize data using an imported query in Power BI](power-bi-connector.md)

0 commit comments

Comments
 (0)