DataConnectors

Data Connector SDK and samples for Power Query and Power BI

  • 所有者: microsoft/DataConnectors
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Getting Started with Data Connectors

Data Connectors for Power BI enables users to connect to and access data from your application, service, or data source, providing them with rich business intelligence and robust analytics over multiple data sources. By integrating seamlessly into the Power Query connectivity experience in Power BI Desktop, Data Connectors make it easy for power users to query, shape and mashup data from your app to build reports and dashboards that meet the needs of their organization.

PBIGetData

Data Connectors are created using the M language. This is the same language used by the Power Query user experience found in Power BI Desktop and Excel 2016. Extensions allow you to define new functions for the M language, and can be used to enable connectivity to new data sources. While this document will focus on defining new connectors, much of the same process applies to defining general purpose M functions. Extensions can vary in complexity, from simple wrappers that essentially just provide "branding" over existing data source functions, to rich connectors that support Direct Query.

Please see the Power Query Connector Developer Reference for more details.

Quickstart

  1. Install the Power Query SDK from the Visual Studio Marketplace
  2. Create a new Data Connector project
  3. Define your connector logic
  4. Build the project to produce an extension file
  5. Copy the extension file into the [Documents]\Power BI Desktop\Custom Connectors directory
  6. Open Power BI Desktop

Note, to load extensions during development, you will need to lower the security level for extensions in Power BI Desktop to enable loading unsigned/uncertified connectors.

  1. Go to File, Options and settings, Options
  2. Go the Security tab
  3. Under Data Extensions, select Allow any extension to load without warning or validation
  4. Restart Power BI Desktop

Gateway Support

The Power BI On-Premises Gateway now supports loading custom connectors.
Please see the technical documentation for more information, and the TripPin Sample for an example of how to add gateway support to your connector.

Distribution of Data Connectors

Power BI Desktop users can download extension files and place them in a known directory (steps described above). Power BI Desktop will automatically load the extensions on restart.

Please see the Connector Certification documentation
for details on the certification process and requirements.

The recording of the Creating a Custom Data Connector session from the Microsoft Data Insights Summit 2017 can be found by clicking the image below:

Deep Dive into the M Language

Hello World Sample

The following code sample defines a simple "Hello World" data source. See the full sample for more information.

GetData

What You Can Do With a Data Connector

Data Connectors allow you to create new data sources, or customize and extend an existing source. Common use cases include:

  • Creating a business analyst friendly view for a REST API
  • Providing branding for a source that Power Query supports with an existing connector (such as an OData service, or ODBC driver)
  • Implementing an OAuth v2 authentication flow for a SaaS offering
  • Exposing a limited/filtered view over your data source to improve usability
  • Supporting different authentication modes when creating a Power BI Content Pack
  • Enabling Direct Query for a data source via an ODBC driver

Upcoming Changes

Custom Connectors for Power BI has reached general availability, but further improvements are planned within the next twelve months, including:

  • File extension changes (.mez to .pqx)
  • Improved tracing and diagnostics for developing Direct Query capable connectors
  • Versioning of extensions, and support for dependencies
  • Improved support for Library extensions (for reusable utility functions)
  • Integration and support for API Connectors for Microsoft Flow and PowerApps
  • Integration with the Office Store
  • Development experience improvements

Please report issues and feature requests through our Github issues page.

主要指標

概覽
名稱與所有者microsoft/DataConnectors
主編程語言PowerShell
編程語言 (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2017-04-03 14:50:42
推送於2024-10-18 01:57:35
最后一次提交2024-10-11 15:25:21
發布數1
最新版本名稱v1.0.0.25 (發布於 )
第一版名稱v1.0.0.25 (發布於 )
用户参与
星數717
關注者數104
派生數368
提交數357
已啟用問題?
問題數0
打開的問題數0
拉請求數39
打開的拉請求數2
關閉的拉請求數13
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?