|
| 1 | +--- |
| 2 | +title: 'Connect your environment to Power BI - Azure Time Series Insights | Microsoft Docs' |
| 3 | +description: Learn how to connect Azure Time Series Insights to Power BI to share, chart, and display data across your organization. |
| 4 | +author: deepakpalled |
| 5 | +ms.author: dpalled |
| 6 | +manager: cshankar |
| 7 | +services: time-series-insights |
| 8 | +ms.service: time-series-insights |
| 9 | +ms.topic: conceptual |
| 10 | +ms.date: 11/12/2019 |
| 11 | + |
| 12 | +# Customer intent: As a data analyst or developer, I want to learn how to connect Azure Time Series Insights to Power BI to share and display data. |
| 13 | +--- |
| 14 | + |
| 15 | +# Visualize data from Time Series Insights in Power BI |
| 16 | + |
| 17 | +Azure Time Series Insights is a platform for storing, managing, querying, and visualizing time-series data in the cloud. [Power BI](https://powerbi.microsoft.com) is a business analytics tool with rich visualization capabilities that allows you to share insights and results across your organization. Both services can now be integrated to get the best of both Time Series Insights' inherent visualization capabilities as well as Power BI's. |
| 18 | + |
| 19 | +You'll learn how to: |
| 20 | + |
| 21 | +* Connect Time Series Insights to Power BI using the cloud connector |
| 22 | +* Create visuals with your data in Power BI |
| 23 | +* Publish the report to Power BI and share with the rest of your organization |
| 24 | + |
| 25 | +By the end, you'll learn how to visualize time-series data through Azure Time Series Insights and enhance it with the strong data visualization and easy sharing capabilities of Power BI. |
| 26 | + |
| 27 | +Make sure to sign up for a [free Azure subscription](https://azure.microsoft.com/free/) if you don't already have one. |
| 28 | + |
| 29 | +## Prerequisites |
| 30 | + |
| 31 | +* Download and install the latest version of [Power BI Desktop](https://powerbi.microsoft.com/downloads/) |
| 32 | +* Have or create an [Azure Time Series Insights GA instance](time-series-insights-get-started.md) or [Azure Time Series Insights Preview instance](time-series-insights-update-how-to-manage.md) |
| 33 | + |
| 34 | +## Connect data from Time Series Insights to Power BI |
| 35 | + |
| 36 | +To connect your Time Series Insights environment to Power BI, follow these steps: |
| 37 | + |
| 38 | +1. Open Time Series Insights Explorer |
| 39 | +1. Export data as a query or as raw data |
| 40 | +1. Open Power BI Desktop |
| 41 | +1. Load from Custom Query |
| 42 | + |
| 43 | +### Export data into Power BI desktop |
| 44 | + |
| 45 | +To get started: |
| 46 | + |
| 47 | +1. Open the Time Series Insights Preview Explorer and curate your data. |
| 48 | +1. Once you have created a view you are satisfied with, navigate to the **More Actions** dropdown menu and click on **Connect to Power BI**. |
| 49 | + |
| 50 | + [](media/how-to-connect-power-bi/time-series-insights-export-option.png#lightbox) |
| 51 | + |
| 52 | +1. Set your parameters inside this tab: |
| 53 | + |
| 54 | + 1. Specify a relative timeframe to view. If you are happy with your existing view, leave this as **Existing timeframe**. |
| 55 | + 1. Choose between **Aggregated** and **Raw Events**. |
| 56 | + |
| 57 | + > [!NOTE] |
| 58 | + > You can always aggregate your data later in Power BI, but you cannot revert to raw data after aggregation. |
| 59 | + |
| 60 | + > [!NOTE] |
| 61 | + > There is a 100-K event count limit for Raw Event level data. |
| 62 | +
|
| 63 | + [](media/how-to-connect-power-bi/connect-to-power-bi.png#lightbox) |
| 64 | + |
| 65 | + 1. If you have not configured your Time Series Insights instance for warm store, you will receive a warning. |
| 66 | + |
| 67 | + [](media/how-to-connect-power-bi/connect-to-power-bi-warning.png#lightbox) |
| 68 | + |
| 69 | + > [!TIP] |
| 70 | + > You may configure your existing instance for warm store in the Azure portal. |
| 71 | +
|
| 72 | +1. Select **Copy query to clipboard**. |
| 73 | +1. Now, launch Power BI Desktop. |
| 74 | +1. In Power BI Desktop on the **Home** tab, select **Get Data** in the upper left corner, then **More**. |
| 75 | + |
| 76 | + [](media/how-to-connect-power-bi/power-bi-home-drop-down.png#lightbox) |
| 77 | + |
| 78 | +1. Search for **Time Series Insights**, select **Azure Time Series Insights (Beta)**, then **Connect**. |
| 79 | + |
| 80 | + [](media/how-to-connect-power-bi/connect-to-time-series-insights.png#lightbox) |
| 81 | + |
| 82 | + Alternatively, navigate to the **Azure** tab, select **Azure Time Series Insights (Beta)**, then **Connect**. |
| 83 | + |
| 84 | +1. A message dialogue box will display asking for permission to connect to third-party resources. Select **continue**. |
| 85 | + |
| 86 | + [](media/how-to-connect-power-bi/confirm-the-connection.png#lightbox) |
| 87 | + |
| 88 | +1. In the dropdown menu under **Data Source**, choose **Create custom query**. Paste from your clipboard into the optional **Custom Query (optional)** field below, then press **OK**. |
| 89 | + |
| 90 | + [](media/how-to-connect-power-bi/custom-query-load.png#lightbox) |
| 91 | + |
| 92 | +1. The data table will now load. Press **Load** to load into Power BI. |
| 93 | + |
| 94 | + [](media/how-to-connect-power-bi/review-the-loaded-data-table.png#lightbox) |
| 95 | + |
| 96 | +If you have completed these steps, skip ahead to the next section. |
| 97 | + |
| 98 | +## Create a report with visuals |
| 99 | + |
| 100 | +Now that you have imported the data into Power BI, it’s time to build a report with visuals. |
| 101 | + |
| 102 | +1. On the left side of the window, make sure you have selected the **Report** view. |
| 103 | + |
| 104 | + [](media/how-to-connect-power-bi/select-the-report-view.png#lightbox) |
| 105 | + |
| 106 | +1. In the **Visualizations** column, select your visual of choice. For example, select **Line chart**. This will add a blank line chart to your canvas. |
| 107 | + |
| 108 | +1. In the **Fields** list, select **Timestamp** and drag it to the **Axis** field to display items along the X-axis. |
| 109 | + |
| 110 | +1. Again, in the **Fields** list, select **TimeSeriesId** and drag it to the **Values** field to display items along the Y-axis. |
| 111 | + |
| 112 | + [](media/how-to-connect-power-bi/power-bi-line-chart.png#lightbox) |
| 113 | + |
| 114 | +1. To add another chart to your canvas, click anywhere on the canvas outside the line chart and repeat this process. |
| 115 | + |
| 116 | + [](media/how-to-connect-power-bi/power-bi-additional-charts.png#lightbox) |
| 117 | + |
| 118 | +Once you have created your report, you can publish it to Power BI Reporting Services. |
| 119 | + |
| 120 | +## Advanced editing |
| 121 | + |
| 122 | +If you have already loaded a dataset in Power BI but would like to modify the query (such as the date/time or Environment ID parameters), you can do this via Power BI’s Advanced Editor functionality. Refer to the [Power BI documentation](https://docs.microsoft.com/power-bi/desktop-query-overview) to learn more. |
| 123 | + |
| 124 | +As an overview: |
| 125 | + |
| 126 | +1. In Power BI Desktop, select **Edit Queries**. |
| 127 | +1. Press **Advanced Editor**. |
| 128 | + |
| 129 | + [](media/how-to-connect-power-bi/power-bi-advanced-query-editing.png#lightbox) |
| 130 | + |
| 131 | +1. Modify the JSON payload as desired. |
| 132 | +1. Select **Done** and then **Close & Apply** within the **Power Query Editor Window**. |
| 133 | + |
| 134 | +You should see the desired changes applied. |
| 135 | + |
| 136 | +## Next Steps |
| 137 | + |
| 138 | +* Read about [Power BI connector concepts](https://docs.microsoft.com/power-bi/desktop-query-overview) for Azure Time Series Insights. |
| 139 | + |
| 140 | +* Learn more about [Power BI desktop](https://docs.microsoft.com/power-bi/desktop-query-overview). |
| 141 | + |
| 142 | +* See [Time Series Insights GA Explorer](https://docs.microsoft.com/azure/time-series-insights/time-series-quickstart) and [Time Series Insights Preview Explorer](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-update-quickstart). |
0 commit comments