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 Automate / Power Automate - "Run ...
Power Automate
Unanswered

Power Automate - "Run a query against a dataset" - missing columns from Power BI semantic model

(0) ShareShare
ReportReport
Posted on by
Dear all,
 
Scenario:
I am using a Power Automate flow for exporting data from a Power BI semantic model to csv every 2 hours. The Power Automate flow uses the action "Run a query against a dataset" and executes a DAX query against a semantic model. The result of the query has 15 columns and roughly 10k rows. The result of the query then is input to action "Create CSV table" which is then input to action "Create file" which is again stored in SharePoint. Some of the columns are sparsely filled, like below 1% of rows with values.
 
Issue/Observation:
The number of columns in the created csv files is changing: sometimes sparse columns are missing and the export only includes 13 or 14 instead of 15 columns.
 
Assumption/Testing:
There is an implicit optimization step in my process, that skips "empty" columns, which have been identified trough sampling (first ~500 rows empty ? skip column : include column). The DAX query in Power BI doesn't skip any columns. Adapting the DAX query to sort sparse columns in descending order fixes the issue, as populated rows appear on top.
 
Question:
Can you confirm that there is such an optimization step in the process chain (sequence of actions) outlined above? Can it be deactivated? What other options are there, besides sorting the sparse columns, to make sure that always all columns, even complete empty ones, are included in the file stored in SharePoint?
 
Kind regards
Tom
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
     
    Have you set the Nulls included property to Yes in the action (the default value is No)? That should be available under the advanced options.

     
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard