MongoDB ODBC Driver for Data Integration with Power BI

Posted Javi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MongoDB ODBC Driver for Data Integration with Power BI相关的知识,希望对你有一定的参考价值。

This guide will walk you through connecting Microsoft Power BI to a MongoDB DataSet using our MongoDB certified ODBC driver.

Microsoft Power BI enables rich data visualization of your company’s data through its suite of analytics tools, letting you easily analyze and share insights in any device. Here’s how to take this awesome BI tool and integrate it with MongoDB data to take it to the next level.

Note: This guide assumes you have MongoDB installed with the “Restaurants” MongoDB Data Set. The “Restaurants” MongoDB Data Set can be found here.

  1. Determine whether your version of PowerBI is 32bit or 64bit. Then, download + install the corresponding free 15 day trial of the DataDirect for MongoDB ODBC driver.

    Navigate to the Progress DataDirect for ODBC Installation directory and click on the ODBC Administrator.

    Click on User or System DSN and click Add:

    技术分享图片

  2. Select DataDirect 8.0 MongoDB.

    Configure the Data Sources by filling out a Data Source Name, the Host Name, Port Number, and which Database within MongoDB you want to connect to (you may chose to leave this blank if you prefer). The Schema Definition Path will be automatically generated for you, but feel free to click on the Browse button in order to change the location of the schema or rename it. Schema Tool Note: The DataDirect MongoDB 8.0 driver will automatically generate a schema for you without you having to open up the Schema Tool!

    技术分享图片

    Click on Test Connect and ensure that your connection is established.

  3. Launch Microsoft Power BI and select New Report:

    技术分享图片 

  4. Select ‘Get Data’ > Other > ODBC and click Connect:

    技术分享图片技术分享图片

  5. Select your MongoDB Data Source Name from the drop down window and select OK:

    技术分享图片

    From the Navigator pane, select the MongoDB data you would like to use in PowerBI. In our case, we are selecting Restaurants and Restaurants_Address for our Visualization.

    Select Load.

  6. You can now see your selected tables in PowerBI on the right hand side of the screen under “Fields.”

    技术分享图片

  7. Next, select the Fields from your MongoDB that you’d like to use in your Visualization. In our case, we are going to select Restaurants (Cuisine) and Restaurants_Address (Zipcode).

    技术分享图片

  8. Then, select the Filled Map Visualization indicated by a this icon 技术分享图片.

    You will then see your data transformed into a map visualization representing all of the different types of cuisines located in our geographic area (in this case, the greater New York City area).

    技术分享图片

  9. Suppose we wanted to count the different types of restaurants by cuisine in each zip code? We can easily accomplish this, adding a “New Measure” by selecting the New Measure icon from the toolbar under Calculations.

    Our New Measure is going to count the number of restaurants in each zip code for us. So we will use Measure = DISTINCTCOUNT(RESTAURANTS[NAME])

    技术分享图片

    Our map now reflects the count of each type of Cuisine by zip code.

    技术分享图片

以上是关于MongoDB ODBC Driver for Data Integration with Power BI的主要内容,如果未能解决你的问题,请参考以下文章

怎么查 ODBC Driver for SQL Server

无法打开 lib 'ODBC Driver 13 for SQL Server'?符号链接问题?

Sqlcmd:错误:Microsoft ODBC Driver 17 for SQL Server:用户“SA”登录失败

[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]列名 'user1' 无效

SQLSTATE[08001]:[Microsoft][ODBC Driver 17 for SQL Server]TCP 提供程序:错误代码 0x2746

(fast_executemany = True) 错误“[ODBC Driver 17 for SQL Server]强制转换规范 (0) (SQLExecute)'的字符值无效”)