Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Import and Visualize JSON Services in Power View
Create data visualizations based on JSON services in Excel.
You can use the built-in ODBC support in Excel to rapidly create Power View reports featuring JSON services. This article shows how to use the Data Connection Wizard, accessible from the Data ribbon, to import JSON services into a Power View report.
Connect to JSON as an ODBC Data Source
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
See the Getting Started chapter in the data provider documentation to authenticate to your data source: The data provider models JSON APIs as bidirectional database tables and JSON files as read-only views (local files, files stored on popular cloud services, and FTP servers). The major authentication schemes are supported, including HTTP Basic, Digest, NTLM, OAuth, and FTP. See the Getting Started chapter in the data provider documentation for authentication guides.
After setting the URI and providing any authentication values, set DataModel to more closely match the data representation to the structure of your data.
The DataModel property is the controlling property over how your data is represented into tables and toggles the following basic configurations.
- Document (default): Model a top-level, document view of your JSON data. The data provider returns nested elements as aggregates of data.
- FlattenedDocuments: Implicitly join nested documents and their parents into a single table.
- Relational: Return individual, related tables from hierarchical data. The tables contain a primary key and a foreign key that links to the parent document.
See the Modeling JSON Data chapter for more information on configuring the relational representation. You will also find the sample data used in the following examples. The data includes entries for people, the cars they own, and various maintenance services performed on those cars.
When you configure the DSN, you may also want to set the Max Rows connection property. This will limit the number of rows returned, which is especially helpful for improving performance when designing reports and visualizations.
Connect with the Data Connection Wizard
Follow the steps below to connect to the DSN from the Data Connection Wizard in Excel.
- On the Data tab, click From Other Sources -> From Data Connection Wizard.
- In the Data Connection Wizard, select the ODBC DSN option.
- Select the ODBC DSN for JSON from the list.
Select the tables you want to work with.
If you want to import multiple tables, deselect the "Connect to a specific table" option. After you connect to the data source, you can select multiple tables: After you click Finish to close the Data Connection Wizard, select the "Enable selection of multiple tables" option in the Select Table dialog.
- In the Import Data dialog, select the destination for your data. For example, select the Table option and the Existing worksheet option. Then click the cell in your worksheet where results should be output.
- Click Insert -> Power View to create a new Power View report.
Create a Table
Tables are the starting point for charts and other representations of your data. To create a table, select a column in the field list. You can also drag and drop table names and column names onto the view.
Create Data Visualizations
On the Design tab, you can change tables into charts and other visualizations.