Connect Qlik Sense to Azure Cosmos DB and visualize your data

APPLIES TO: NoSQL MongoDB

Qlik Sense is a data visualization tool that combines data from different sources into a single view. Qlik Sense indexes every possible relationship in your data so that you can gain immediate insights to the data. You can visualize Azure Cosmos DB data by using Qlik Sense. This article describes the steps required to connect Azure Cosmos DB to Qlik Sense and visualize your data.

Note

Connecting Qlik Sense to Azure Cosmos DB is currently supported for API for NoSQL and MongoDB accounts only.

You can Connect Qlik Sense to Azure Cosmos DB with:

  • Azure Cosmos DB API for NoSQL by using the ODBC connector.

  • Azure Cosmos DB's API for MongoDB by using the Qlik Sense MongoDB connector (currently in preview).

  • Azure Cosmos DB's API for MongoDB and NoSQL by using REST API connector in Qlik Sense.

  • Azure Cosmos DB MongoDB API by using the gRPC connector for Qlik Core. This article describes the details of connecting to the Azure Cosmos DB API for NoSQL by using the ODBC connector.

This article describes the details of connecting to the Azure Cosmos DB API for NoSQL by using the ODBC connector.

Prerequisites

Before following the instructions in this article, ensure that you have the following resources ready:

Connect Qlik Sense to Azure Cosmos DB

  1. Open Qlik Sense and select Create new app. Provide a name for your app and select Create.

    Create a new Qlik Sense app

  2. After the new app is created successfully, select Open app and choose Add data from files and other sources.

  3. From the data sources, select ODBC to open the new connection setup window.

  4. Switch to User DSN and choose the ODBC connection you created earlier. Provide a name for the connection and select Create.

    Create a new connection

  5. After you create the connection, you can choose the database, collection where the video game data is located and then preview it.

    Choose the database and collection

  6. Next select Add data to load the data to Qlik Sense. After you load data to Qlik Sense, you can generate insights and perform analysis on the data. You can either use the insights or build your own app exploring the video games sales. The following image shows

    Visualize data

Limitations when connecting with ODBC

Azure Cosmos DB is a schema-less distributed database with drivers modeled around developer needs. The ODBC driver requires a database with schema to infer columns, their data types, and other properties. The regular SQL query or the DML syntax with relational capability is not applicable to Azure Cosmos DB API for NoSQL because API for NoSQL is not ANSI SQL. Due to this reason, the SQL statements issued through the ODBC driver are translated into Azure Cosmos DB-specific SQL syntax that doesn’t have equivalents for all constructs. To prevent these translation issues, you must apply a schema when setting up the ODBC connection. The connect with ODBC driver article gives you suggestions and methods to help you configure the schema. Make sure to create this mapping for every database/collection within the Azure Cosmos DB account.

Next Steps

If you are using a different visualization tool such as Power BI, you can connect to it by using the instructions in the following doc: