Artificial intelligence is transforming all areas of technology, and Power BI is no exception. Power BI Copilot is the result of the integration between Copilot —an AI assistant— and Power BI The integration is aimed at helping users create and understand DAX queries more efficiently, among other features.
Power BI Copilot simplifies the creation of complex calculations in Power BI and provides detailed explanations, allowing users to maximise the potential of their data analysis without being DAX experts.
Power BI Copilot is an advanced AI integration —specifically, GenAI— within Power BI that allows users to interact with their data in a more intuitive and efficient way.
Developed by Microsoft, Copilot uses natural language models to interpret and generate DAX queries, streamlining the analysis and reporting process in Power BI.
Power BI Copilot combines generative AI with Power BI data to help users discover and share information faster.
Among many others, these are some of the most remarkable features of Power BI Copilot:
For example, a user can ask Copilot to "show cumulative sales by product for the last three months" and the tool will automatically generate the corresponding DAX query.
This capability not only saves time, but also reduces the possibility of human error in writing DAX code.
If you want to go even deeper into the best practices for creating Power BI Reports, we invite you to download our free eBook: "21 Best Practices for Reporting in Power BI".
You're probably wondering how to use Copilot in Power BI, but don't worry, it's actually quite simple. The first step is to make sure Copilot is enabled in your Power BI Desktop environment.
It is important to keep in mind that in order to use Copilot, users must ensure that their workspace is running in the F64 or Premium capacity in Power BI Service or Desktop.
Here's a step-by-step guide on how to enable Copilot in Power BI:
Once enabled, you can "call" Copilot by using the keyboard shortcut CTRL+I or by clicking on the Copilot button in the Power BI ribbon.
From here, you can start exploring the capabilities of this tool to enhance your data analysis and reporting in Power BI.
Using Power BI Copilot to write DAX queries not only simplifies the process, but also improves the accuracy and efficiency of data analysis.
Here's a step-by-step guide on how to write DAX queries with Copilot:
To get started, you need to activate Copilot. This can be done in several ways:
CTRL+I
.Once Copilot is active, you can type a request in natural language.
For example, if you need to list products and show the profits for the last three months compared to the previous three months, simply type: "list products and show profits for the last three months compared to the previous three months."
Copilot will process your request and generate the corresponding DAX query.
It's important to review the query to ensure it meets your needs before executing it.
EVALUATE
SUMMARIZECOLUMNS(
'Product'[ProductName],
"Last 3 Months Profit", CALCULATE(SUM('Sales'[Profit]), DATESINPERIOD('Date'[Date], LASTDATE('Date'[Date]), -3, MONTH)),
"Previous 3 Months Profit", CALCULATE(SUM('Sales'[Profit]), DATESINPERIOD('Date'[Date], DATEADD(LASTDATE('Date'[Date]), -3, MONTH), -3, MONTH))
)
Once you are satisfied with the query, click "Keep it" and then "Run" to execute the query and see the results.
Using Copilot for DAX queries offers multiple benefits. It does not only save time by automating the creation of complex queries but also reduces the probability of human mistakes.
Additionally, it enables less experienced DAX users to create advanced analyses without having to learn every detail of the language.
One of the most interesting aspects of Power BI Copilot is its ability to explain DAX queries clearly and in detail.
This functionality is especially useful for those who are learning DAX or need to understand the workings of complex queries created by others.
To have Copilot explain a DAX query, follow these steps:
CTRL+I
or the Copilot button in the ribbon to activate the tool.Suppose you have the following DAX query and want to understand exactly what it does:
EVALUATE
SUMMARIZECOLUMNS(
'Product'[ProductName],
"Total Sales", SUM('Sales'[SalesAmount])
)
When you ask Copilot for an explanation, you might receive a response like this:
The primary benefit of this feature is that it allows users to learn and understand DAX more efficiently.
Instead of searching for external documentation or tutorials, users can now get contextual explanations they need directly within Power BI.
This not only improves the learning curve but also increases productivity by allowing a more direct and practical approach.
One of the highlights of Power BI Copilot is its ability to offer advanced features that enhance the user experience when working with DAX queries.
These features not only make query creation faster and more accurate, but also help users better understand their data and how it is being analysed.
Power BI Copilot is able to check and correct the syntax of the DAX queries it generates. This is particularly useful for users who are not completely familiar with DAX syntax.
If Copilot detects an error in the query, it will automatically attempt to correct it or provide a suggestion on how to fix it. This process helps minimise errors and ensures that queries are executed correctly.
One of the most useful features of Copilot are the inspiration buttons. These buttons provide quick examples of what can be done with Copilot, such as generating a DAX query to calculate cumulative sales or creating a custom measure.
By clicking on these buttons, users can get a quick understanding of Copilot's capabilities and how they can apply them to their own data.
Below, we provide a series of practical examples of prompts to illustrate how Power BI Copilot can be used in real-life situations.
Prompt: "Create a measure that calculates cumulative sales over time in Power BI."
Copilot will generate a DAX query that sums total sales over time, providing a clear view of cumulative sales performance. This measure is especially useful for analyzing trends and making future forecasts.
Prompt: "Create a report summarizing the profile of customers who have visited our resort in the last 12 months, including a breakdown of new vs. returning customers, demographic data, length of stay, and types of customers received."
This prompt enables Copilot to generate a detailed report that segments customers based on various criteria, providing a deep understanding of the customer base and helping to identify marketing and sales opportunities.
Prompt: "Explain what this query does."
This prompt is invaluable for those learning DAX or needing to understand complex queries created by others. Copilot will break down the query step-by-step, explaining each function and its purpose in the context of the query.
Before you go, remember you can download our eBook where you'll find 21 best practices to optimize your Power BI reports.
Power BI Copilot is a revolutionary tool that transforms the way users interact with DAX in Power BI. Its ability to generate and explain queries efficiently and accurately makes it an invaluable resource for data analysts of all levels. Additionally, advanced features like syntax verification and inspiration buttons make it more accessible and easy to use, even for those who are not DAX experts.
If you haven't explored Copilot yet, we encourage you to enable it in your Power BI environment and start experimenting with its powerful functionalities today. Not only will you save time and reduce errors, but you will also significantly improve the quality of your data analysis and data-driven decision-making.