Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
WilsonWo
Frequent Visitor

Power Automate Run Query Against Dataset Erroneous Csv exports

Hi has anyone faced erroneous outputs when using the "Run a query against a dataset" connector? I am trying to split a table into multiple csv based on a column 'scenario', using the following flow below and within the 'Run a query against a dataset for campaign results' I have summarized and order the columns I want from the dataset (Fyi, I reference this video to write my query text >>> https://www.youtube.com/watch?v=WsbIXJDhC_o) but strangely not all the exported csv returned the same number of columns nor were the columns ordered correctly for some. Is this some kind of bug for this connector? Appreciate Microsoft's advice on this, many thanks. 

WilsonWo_0-1688706230146.png

 

2 REPLIES 2
lbendlin
Super User
Super User

not all the exported csv returned the same number of columns nor were the columns ordered correctly for some

This may be caused by dataset refreshes completing in between your queries, or if your data source is in Direct Query mode.

The DAX query does not guarantee any sort order unless you explicitly ask for it (at an additional cost).

Thanks @lbendlin for the explanation, yes i did explicitly specify the columns and order in the 'run a query against a dataset for campaign results' step. 

Would you happen to know how to change the query mode? I can't find a way to switch that from the 'Run a query against a dataset' connector in power automate. Appreciate your advice if you know of any, many thanks. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.