|
| 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 | +  |
| 50 | +
|
| 51 | +1. On the **Tools** tab, select **Query to Power BI** then **OK**. |
| 52 | +
|
| 53 | +  |
| 54 | +
|
| 55 | +1. In Power BI Desktop, on the **Home** tab, select **Get Data** then **Blank query**. |
| 56 | +
|
| 57 | +  |
| 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 | +  |
| 64 | +
|
| 65 | +1. In the main Power Query Editor window, select **Edit credentials**. Select **Organizational account**, sign in, then select **Connect**. |
| 66 | +
|
| 67 | +  |
| 68 | +
|
| 69 | +1. On the **Home** tab, select **Close & Apply**. |
| 70 | +
|
| 71 | +  |
| 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) |
0 commit comments