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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard