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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Running a query against a Power BI dataset

(0) ShareShare
ReportReport
Posted on by 157

Hi everyone,

I'm trying to run a query against a power bi dataset, but i have issues with it.

The purpose of the query is to get a measure in power bi that tells me which filter are selected in the report.

I'm trying to use this query :

Slowpoke_0-1659535709339.png


This var works without issues in a measure in Power BI: 

Slowpoke_1-1659535771982.png


But, I don't understand why it's not working in power automate, where i get this error:

"  {"error":{"code":"DatasetExecuteQueriesError","pbi.error":{"code":"DatasetExecuteQueriesError","parameters":{},"details":[{"code":"DetailsMessage","detail":{"type":1,"value":"Query (1, 5) The syntax for '_Selects' is incorrect. (var _Selects = IF(\n ISFILTERED(Etat_Consigne_Approb[Perimetres]),\n CONCATENATEX(\n ALLSELECTED(Etat_Consigne_Approb[Perimetres]),\n CONCATENATE(\"'\" & Etat_Consigne_Approb[Perimetres] & \"'\",\n \", \"\n ),\n \"\"\n))\n_Selects)."}},{"code":"AnalysisServicesErrorCode","detail":{"type":1,"value":"3238920194"}}]}}}  "

I can provide any other information on this flow if needed.

And if you have any other idea to bypass this issue, it would also be greatly appreciated.

Thank you by advance.

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 560 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 347 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 262 Most Valuable Professional

Last 30 days Overall leaderboard