AppsPricingBlogTry it
Microsoft Power BI logo
OpenAI (ChatGPT) logo

Connect Microsoft Power BI to OpenAI (ChatGPT)

Automate workflows and sync data between Microsoft Power BI and OpenAI (ChatGPT) with AI-powered automation

5-minute setup
Enterprise secure
No coding required

Why Connect Microsoft Power BI & OpenAI (ChatGPT)?

Intelligent Automation Workflows

Leverage 3 available triggers from Microsoft Power BI to execute 24 targeted actions in OpenAI (ChatGPT) automatically.

Eliminate Manual Data Entry

Replace time-consuming manual processes with intelligent automation that keeps Microsoft Power BI and OpenAI (ChatGPT) perfectly synchronized.

Real-time Business Intelligence

Create a unified data flow between Microsoft Power BI and OpenAI (ChatGPT) for instant insights and improved decision-making across your tech stack.

Available Triggers & Actions

Microsoft Power BI logo

Microsoft Power BI

Triggers (3)

Dataset Refresh Completed

Emit new event when a dataset refresh operation has completed. See the documentation

polling
Dataset Refresh Failed

Emit new event when a dataset refresh operation has failed in Power BI. See the documentation

polling
New Dataset Refresh Created

Emit new event when a new dataset refresh operation is created. See the documentation

polling

Actions (15)

Add Rows to Dataset Table

Adds new data rows to the specified table within the specified dataset from My workspace. See the documentation

Add Rows To Push Dataset

Append rows to a table in a Power BI Push Dataset (streaming / realtime data). Only works for datasets created via the REST API with defaultMode: Push — these datasets expose addRowsAPIEnabled: true on the object returned by **List Datasets**. Use **List Datasets** first to resolve a dataset name → datasetId and inspect its tables for the exact tableName (case-sensitive). Pass workspaceId (from **List Workspaces**) or workspaceName to target a specific workspace, or omit both for My workspace. Rows must match the table's column schema. rows accepts either a JSON array ([{...}, {...}]) or a JSON-stringified array. Each row is an object of columnName → value. Common mistakes: (1) case mismatch on tableName returns 404 — copy the exact string from the dataset's tables array. (2) Sending values that don't match the declared column data type returns RequestedResourceNotFound or DMTS_DatasourceHasNoCredentialsError. Push-dataset rows have no individual IDs and cannot be updated or deleted — only appended or bulk-cleared. See the documentation

Cancel Dataset Refresh

Cancels a refresh operation for a specified dataset in Power BI. See the documentation

Create Dataset

Creates a new Push Dataset in Power BI. See the documentation

Execute DAX Query

Execute a DAX (Data Analysis Expressions) query against a Power BI dataset (semantic model). This is the primary analytics tool — use it to answer questions about values, aggregates, or filtered rows in a dataset. Use **List Datasets** first to resolve a dataset name → datasetId. The query must be a single valid DAX expression starting with EVALUATE. **Table discovery (standard datasets):** For datasets published from Power BI Desktop, the REST GET /datasets/{id}/tables endpoint is scoped to push datasets only and will not list tables. Use EVALUATE INFO.TABLES() instead — it returns every table name in the semantic model. Typical agent flow: **List Workspaces** → **List Datasets** → **Execute DAX Query** (EVALUATE INFO.TABLES()) → **Execute DAX Query** (EVALUATE 'TableName'). Common patterns: • Discover all tables — EVALUATE INFO.TABLES() (use this before querying an unknown dataset) • List all rows of a table — EVALUATE 'Species' • Filter — EVALUATE FILTER('Species', 'Species'[dietType] = "Carnivore") • Top N by column — EVALUATE TOPN(5, 'Species', 'Species'[weightKg], DESC) • Aggregate single value — EVALUATE ROW("Total", SUMX('Species', 'Species'[weightKg])) • Peek at a table's columns — EVALUATE TOPN(0, 'Species') (returns an empty rowset with column names in the response). Limits: max 100,000 rows or 1,000,000 values per query, and DEFINE/multiple-statement queries are not supported via REST. The tenant must have 'Dataset Execute Queries REST API' enabled (admin setting) or the call returns 401/403. Pass workspaceId (from **List Workspaces**) or workspaceName to target a specific workspace, or omit both for My workspace. See the documentation

Export Report

Export a Power BI report to a file format such as PDF, PPTX, or PNG. Requires a report ID (use **List Reports** to find it) and defaults to PDF if no format is given. Pass workspaceId (from **List Workspaces**) or workspaceName to target a specific workspace, or omit both for My workspace. Supported format values depend on the report type: Power BI reports support PDF, PPTX, PNG. Paginated reports additionally support CSV, XLSX, DOCX, XML, MHTML. This API is **Premium-only**: requires the workspace to be backed by Premium capacity, Premium Per User, or Embedded capacity. On shared (free) capacity it returns FixedCapacityLimitExceeded / 403. The export is asynchronous — this tool starts the export, then polls until the job reaches Succeeded or Failed (or pollTimeoutSeconds elapses), then downloads the file and returns it as base64 along with the job metadata. PNG exports only work for single-page reports. For PPTX/PDF, pass pages (array of page names, e.g., ["ReportSection", "ReportSection1"]) to limit the export. See the documentation

Get Dataset Refresh

Triggers a refresh operation for a specified Power BI dataset. See the documentation

Get Refresh History

Get the refresh history for a Power BI dataset. Use **List Datasets** first to resolve a dataset name → datasetId. Pass workspaceId (from **List Workspaces**) or workspaceName to scope to a specific workspace, or omit both for My workspace. Each entry includes requestId, refreshType (OnDemand, Scheduled, ViaApi, etc.), startTime, endTime, status (Completed, Failed, Disabled, Cancelled, Unknown — Unknown means still in progress), and serviceExceptionJson on failures. See the documentation

Get Report by id

Retrieve metadata for a single Power BI report by ID. Uses My workspace by default; set Workspace (Group) ID for a specific workspace. See the documentation

Get Reports

Get reports from a Power BI workspace. See the documentation

List Dashboards

List Power BI dashboards in a workspace. Defaults to the authenticated user's personal My workspace when no workspace is specified. Pass workspaceId (preferred, from **List Workspaces**) OR workspaceName to scope to a specific workspace. Each dashboard includes id, displayName, isReadOnly, webUrl, and embedUrl. Note: dashboards cannot be created via the REST API — they are built interactively in the Power BI service. See the documentation

List Datasets

List Power BI datasets (semantic models) in a workspace. Defaults to the authenticated user's personal My workspace when no workspace is specified. Pass workspaceId (preferred, from **List Workspaces**) OR workspaceName to scope to a specific workspace. Each dataset includes id, name, webUrl, addRowsAPIEnabled (true for Push Datasets), isRefreshable, and defaultMode (Push, Streaming, PushStreaming, AsOnPrem, AsAzure). Use this tool to resolve a dataset name → ID before calling **Refresh Dataset**, **Execute DAX Query**, **Get Refresh History**, or **Add Rows To Push Dataset**. For push-dataset row inserts, call the dataset's GET tables endpoint (not exposed as a separate tool) by inspecting the dataset's name → tables are defined at dataset creation; the table name is the string configured at creation time (e.g., Species). See the documentation

List Reports

List Power BI reports in a workspace. Defaults to the authenticated user's personal My workspace when no workspace is specified. Pass workspaceId (preferred, from **List Workspaces**) OR workspaceName to scope to a specific workspace — the tool resolves the name to an ID server-side. Each report includes id, name, webUrl, embedUrl, datasetId, and reportType (PowerBIReport or PaginatedReport). Note: reports cannot be created via the REST API — they are published from Power BI Desktop. See the documentation

List Workspaces

List the Power BI workspaces (groups) the authenticated user can access. Use this tool first whenever the user refers to a workspace by name — it returns the id you need to pass as workspaceId to other tools. Power BI has no /me endpoint, so the set of accessible workspaces is the user's primary context (the 'who am I' signal for this app). Every item in the response includes id, name, isReadOnly, isOnDedicatedCapacity, and type. Note: when a user says 'my workspace' without a name, they may mean personal My workspace (implicit — pass no workspaceId to other tools) OR a specific named workspace — ask only if ambiguous. See the documentation

Refresh Dataset

Trigger a refresh of a Power BI dataset. Returns 202 Accepted on success; the request ID is available in the Location response header (last path segment) and x-ms-request-id header — use **Get Refresh History** to check status. Use **List Datasets** first to resolve a dataset name → datasetId. Pass workspaceId (from **List Workspaces**) or workspaceName to target a specific workspace, or omit both for My workspace. notifyOption controls email notifications on refresh outcome: NoNotification (default), MailOnCompletion, or MailOnFailure. Power BI Pro licenses allow up to 8 scheduled refreshes per day; Premium allows 48. Note: Push datasets accept this endpoint but the refresh is metadata-only (tile refresh), not a data refresh — no cancellable history entry is produced. See the documentation

OpenAI (ChatGPT) logo

OpenAI (ChatGPT)

Triggers (4)

New Batch Completed

Emit new event when a new batch is completed in OpenAI. See the documentation

polling
New File Created

Emit new event when a new file is created in OpenAI. See the documentation

polling
New Fine Tuning Job Created

Emit new event when a new fine-tuning job is created in OpenAI. See the documentation

polling
New Run State Changed

Emit new event every time a run changes its status. See the documentation

polling

Actions (24)

Chat

The Chat API, using the gpt-3.5-turbo or gpt-4 model. See the documentation

Chat using Web Search

Chat using the web search tool. See the documentation

Chat using Functions

Chat with your models and allow them to invoke functions. Optionally, you can build and invoke workflows as functions. See the documentation

Chat using File Search

Chat with your files knowledge base (vector stores). See the documentation

Summarize Text

Summarizes text using the Chat API. See the documentation

Classify Items into Categories

Classify items into specific categories using the Chat API. See the documentation

Translate Text (Whisper)

Translate text from one language to another using the Chat API. See the documentation

Create Transcription

Transcribes audio into the input language. See the documentation

Create Image (Dall-E)

Creates an image given a prompt returning a URL to the image. See the documentation

Create Embeddings

Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. See the documentation

Create Completion (Send Prompt)

OpenAI recommends using the **Chat** action for the latest gpt-3.5-turbo API, since it's faster and 10x cheaper. This action creates a completion for the provided prompt and parameters using the older /completions API. See the documentation

Analyze Image Content

Send a message or question about an image and receive a response. See the documentation

Cancel Run (Assistants)

Cancels a run that is in progress. See the documentation

Chat with Assistant

Sends a message and generates a response, storing the message history for a continuous conversation. See the documentation

Chat With Responses API

Send a chat via the Responses API, mixing built-in tools and MCP server tools. See the documentation.

Convert Text to Speech (TTS)

Generates audio from the input text. See the documentation

Create Assistant

Creates an assistant with a model and instructions. See the documentation

Create Batch

Creates and executes a batch from an uploaded file of requests. See the documentation

Create Fine Tuning Job

Creates a job that fine-tunes a specified model from a given dataset. See the documentation

Create Moderation

Classifies if text is potentially harmful. See the documentation

Create Thread (Assistants)

Creates a thread with optional messages and metadata, and optionally runs the thread using the specified assistant. See the documentation

Create Vector Store

Create a vector store. See the documentation

Create Vector Store File

Create a vector store file. See the documentation

Delete File

Deletes a specified file from OpenAI. See the documentation

Integration Features

Real-time data synchronization
Bi-directional sync capabilities
Custom field mapping
Advanced filtering options
Error handling & retry logic
Activity monitoring & logs

Popular Workflows

When Microsoft Power BI trigger → Create/Update in OpenAI (ChatGPT)

Most Popular
Microsoft Power BIMicrosoft Power BI

Dataset Refresh Completed

OpenAI (ChatGPT)OpenAI (ChatGPT)

Chat

When OpenAI (ChatGPT) trigger → Update Microsoft Power BI

Bi-directional
OpenAI (ChatGPT)OpenAI (ChatGPT)

New Batch Completed

Microsoft Power BIMicrosoft Power BI

Add Rows to Dataset Table

How It Works

1

Connect Apps

Authenticate your Microsoft Power BI and OpenAI (ChatGPT) accounts

2

Map Fields

Choose which data fields to sync between apps

3

Set Triggers

Define when and how data should be synchronized

Automate

Sit back and let AI handle the automation

Frequently Asked Questions

Integration Benefits

Real-time Data Sync

Automatic synchronization between Microsoft Power BI and OpenAI (ChatGPT) with 7 public triggers available for instant updates.

Automated Actions

Execute 39 public actions automatically across both platforms without manual intervention.

Enterprise Security

Industry-standard encryption, OAuth 2.0 authentication, and SOC 2 compliance for secure data transfer.

Quick Setup

Connect Microsoft Power BI and OpenAI (ChatGPT) in minutes with our guided setup wizard and pre-configured templates.

Custom Field Mapping

Map any field between Microsoft Power BI and OpenAI (ChatGPT) with intelligent suggestions and validation.

Error Handling

Automatic retry logic, detailed error logs, and smart notifications keep your integration running smoothly.

OpenAI (ChatGPT) logoMicrosoft Power BI logo

Reverse Integration Available

Also connect OpenAI (ChatGPT) to Microsoft Power BI for bidirectional automation

View Integration
Microsoft Power BI logo

All Microsoft Power BI Integrations

Explore all available Microsoft Power BI connections

View All Integrations
OpenAI (ChatGPT) logo

All OpenAI (ChatGPT) Integrations

Explore all available OpenAI (ChatGPT) connections

View All Integrations

Ready to Connect Microsoft Power BI & OpenAI (ChatGPT)?

Join thousands of users automating their workflows with Mazaal AI