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 / PowerBI.ExecuteDataset...
Power Apps
Answered

PowerBI.ExecuteDatasetQuery()

(0) ShareShare
ReportReport
Posted on by 41
I'm trying to get data from my PBI report through Power Apps by using "PowerBI.ExecuteDatasetQuery("my_groupId", "my_datasetId", "below_query")".
PBI desktop returned a DAX query that I used (below), but all I get is this: 
 
 
Any ideas where and what I can change to get the data I am expecting? Works fine in PowerAutomate, but I am not a fan of triggering a flow as this is something thousands of users may trigger couple times a day.


"DEFINE
                VAR __DS0FilterTable =
                                FILTER(
                                                KEEPFILTERS(VALUES(PBItableName[email])),
                                                PBItableName[email] = ""user@domain.com""
                                )
                VAR __DS0FilterTable2 =
                                FILTER(
                                                KEEPFILTERS(VALUES(PBItableName[Date_Column])),
                                                OR(
                                                                PBItableName[Date_Column] >= DATE(2024, 1, 1),
                                                                PBItableName[Date_Column] < DATE(2025, 1, 1)
                                                )
                                )
                VAR __DS0Core =
                                CALCULATETABLE(
                                                SUMMARIZE(
                                                                PBItableName,
                                                                PBItableName[email],
                                                                PBItableName[Name],
                                                                PBItableName[Column1],
                                                                PBItableName[Column2],
                                                                PBItableName[Date_Column]
                                                ),
                                                KEEPFILTERS(__DS0FilterTable),
                                                KEEPFILTERS(__DS0FilterTable2)
                                )
                VAR __DS0PrimaryWindowed =
                                TOPN(
                                                501,
                                                __DS0Core,
                                                PBItableName[email],
                                                1,
                                                PBItableName[Name],
                                                1,
                                                PBItableName[Column1],
                                                1,
                                                PBItableName[Column2],
                                                1,
                                                PBItableName[Date_Column],
                                                1
                                )
EVALUATE
                __DS0PrimaryWindowed
ORDER BY
                PBItableName[email],
                PBItableName[Name],
                PBItableName[Column1],
                PBItableName[Column2],
                PBItableName[Date_Column]"
I have the same question (0)
  • Verified answer
    iguana Profile Picture
    41 on at
    Since I can't delete my post, sharing one where the answer was the solution:
     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 742

#2
Valantis Profile Picture

Valantis 474

#3
Haque Profile Picture

Haque 358

Last 30 days Overall leaderboard