Power BI ? DAX Queries & MS Flow
"Automating Power BI Insights with DAX Queries and Microsoft Flow"

Power BI ? DAX Queries & MS Flow

In today's fast-paced business world, the ability to make data-driven decisions quickly can be the difference between success and failure. Microsoft Power BI is a powerful tool for data visualization and analysis, but what if you could take it a step further and automate your insights? With the "Run a query against a dataset" activity in Microsoft Power Automate, you can do just that. By writing a DAX query to extract the data you need from your Power BI dataset, and automating the process with Flow, you can receive your insights automatically without the need for manual data extraction or analysis. This not only saves time but also ensures accuracy, as the insights are generated using the latest data available. The result is a streamlined, efficient, and reliable process that can help businesses make better decisions faster.

No alt text provided for this image
An example of power automate manually triggered flow

I have a Sales Dashboard that includes a table with columns for customer ID, country, sales, and discounts. When a user triggers an activity and inputs a specific value, I want to extract the table data that corresponds to that value. The extracted data is then delivered to the user via email in a CSV format. This way, the user can quickly and easily access the exact information they need without having to manually search through the entire dataset. Plus, the automated delivery of data in a CSV format saves them time and effort, and ensures that the information is presented in an easily accessible and readable format.

No alt text provided for this image
Sales Dashboard

Lets explore the activities one by one

Trigger Activity : Here i am using "Manual Trigger" which has an input field which asks the user to input "Country Name"

No alt text provided for this image
User Input Via manually triggered activity

Once user provides the "Country Name", I am running the DAX query using "Run a query against a dataset" activity

No alt text provided for this image
Running DAX query via "Run a query against a dataset" activity

As you see in above picture I am referencing the value provided by user as a filter on Country column

Now all we have to do is create a csv table which will be used as a content while attaching the result file in the email

No alt text provided for this image
CSV Table created upon DAX query result

Finally I am attaching the result file to the email which is being sent back to the user

No alt text provided for this image
Email being sent to user

Below is the final email I received in my email box

No alt text provided for this image
Final Result for Country "Algeria"

In conclusion, the ability to automate your insights with DAX queries and Microsoft Flow can revolutionize the way your business operates. By streamlining the data extraction process and delivering results directly to your users in a CSV format, you can save valuable time and resources while ensuring that your data is accurate and up-to-date. With the "Run a query against a dataset" trigger in Microsoft Power Automate, you can unleash the full potential of Power BI and take your data analysis to the next level. So why wait? Start automating your insights today and discover the power of data-driven decision-making! ????

Please Follow Botaverse and Subscribe my YouTube Channel "Botaverse" for more awesome contents ??

Nelly T.

Senior Scheduler |Utility, Oil, Gas, Construction

1 年

Nice post! I am assuming that when the flow is set on recurrence. It refreshes the dataset with actual too?

要查看或添加评论,请登录

Md Aamir Reza的更多文章

  • Reply All Draft & Update Body using Graph API

    Reply All Draft & Update Body using Graph API

    How to use graph API to send http request and "Create a message draft in JSON format to reply-all to an existing…

  • Secure Access: Power BI Flow Button

    Secure Access: Power BI Flow Button

    ? Scenario: I have a sales dashboard which is shared and published in a Microsoft team's group tab. It has a button…

    4 条评论
  • MS Teams ? GPT3 (ChatGPT)!

    MS Teams ? GPT3 (ChatGPT)!

    ?? Connecting OpenAI's GPT-3 with MS Teams using the OpenAI connector can revolutionize the way teams collaborate and…

    5 条评论
  • Send Out Filtered Table Using Outlook

    Send Out Filtered Table Using Outlook

    Cloud Flow Use Case: How to filter data read by Power Automate from an Excel file stored in OneDrive ?? Let's start…

  • Bot to send Weather Updates ??

    Bot to send Weather Updates ??

    Hey Guys, Today i am going to implement a use case of getting weather info using "MSN weather connector" and sending…

  • Power Automate Cloud: Copy File

    Power Automate Cloud: Copy File

    Hey guys, If you are reading this article you are most likely having an enthusiasm to learn how Power Automate works. I…

社区洞察

其他会员也浏览了