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 / Flow Create CSV from P...
Power Automate
Unanswered

Flow Create CSV from PowerBI DataQuery - Need help renaming columns in CSV

(0) ShareShare
ReportReport
Posted on by 109

Hello,

 

I have a flow working nearly perfectly. Once a day, a query is run against a PowerBI Dataset and then creates a csv, which is then emailed to a user for further automation.

But I would like to be able to control the csv column names, and  I can't figure out how to do so. I've tried everything I can think of and I've gone through CoPilot; nothing seems to work. 

Below are photos of my flow and the resulting CSV.

For column 1, the result is currently Query1[Contact ID (Contact) (Contact)]. I would like it to simply be called Contact ID. 

Photo 1: The CSV step.
Image 3 - The CSV Table Step.png

Photo 2: The result csv headers
Image 2 - The CSV Headers.png

Photo 3: The flow itself
Image 1 - The Flow.png

Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @amulhearn0207 

     

    You can choose "Custom" from 'Columns' parameter and set the column name in the header key textbox as per the need. Here is an example for State column:

    ManishSolanki_0-1714579343316.png

    Below expression needs to be added in the Function window as highlighted in the above screenshot.

    item()?['Query[State]']

    it takes column name as the index for item() function. So, apply item() function for each custom column as per the need.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard