web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I connect a Pow...
Power Apps
Suggested Answer

How do I connect a Power BI Dataset to Power Apps using ExecuteDataSetQuery function?

(1) ShareShare
ReportReport
Posted on by 25
I've discovered something when connecting a Power BI dataset to Power Apps and it is the ExecuteDataSetQuery function. I'm a little confused on how to use it and pull data from a table I have in a Power BI report. I get what I have to do for the first two but I'm not sure what to do for the last parts where it asks for a query and a pbi_source field. I'm not really interested in using Power Automate for this if the functionality is already there in Power Apps. Any ideas?
Categories:
I have the same question (0)
  • Suggested answer
    venturemavenwill Profile Picture
    1,193 Super User 2026 Season 1 on at
    pbi_source is optional and don't need to be entered. 

    Here is an example PowerFx formula. Essentially you need to write PowerQuery, which will then be performed on your dataset
     
    ClearCollect(colProjectsRaw, PowerBI.ExecuteDatasetQuery(
        "aaaaaaaa-bbbb-cccc-dddd-1234567890ab", /*Workspace GUID*/
        "bbbbbbbb-cccc-dddd-eeee-1234567890ab", /*Dataset GUID*/
    
        "EVALUATE
            SELECTCOLUMNS(VALUES('Projects'),
                'Projects'[ID],
                'Projects'[Description],
                'Projects'[Project_Manager])
            ORDER BY 'Projects'[ID] DESC"
        ).firstTableRows
    );
    Hope this gives you an idea on how to structure your own query.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard