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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove text from CSV H...
Power Automate
Answered

Remove text from CSV Header

(0) ShareShare
ReportReport
Posted on by 22

Hi all,

 

I have a flow that export Power BI data to a CSV file.  

MiltonK_0-1666338909842.png

 

 

How can I remove the text input[ and ] from the header automatically in the flow please?

Please note: new Date columns are generated every week so can not be hard-coded 

 

MiltonK_1-1666339547572.png

 

 

Thanks for your help

Categories:
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @MiltonK 

     

    Not sure this will help or not.

    But in the action where you are creating csv table, instead of automatic do custom in the columns.

     

    Sundeep_Malik_0-1666341193959.png

    Then you will be able to give headers you want.

  • MiltonK Profile Picture
    22 on at

    @Sundeep_Malik  Thanks but I was looking at the option and not sure what to fill?  Esp the date columns are generated every week so can not be hard-coded ::

     

    MiltonK_0-1666346293494.png

     

     

  • Sundeep_Malik Profile Picture
    6,501 on at

    @MiltonK 

     

    Give a column there and in the values write something as

    item()['columnname'] 

    Or some kind of dynamic value that you are getting from above power bi action.

    But from the screenshot I am not able to see any of the values so might not be possible. 

     

  • Verified answer
    MiltonK Profile Picture
    22 on at

    Thanks for your help.

     

    Managed to do it with Replace text variable:

     

    MiltonK_1-1666350006561.png

     

  • takolota1 Profile Picture
    4,980 Moderator on at

    Anyone with similar issues could also try this template to process CSVs to Excel tables. It includes an option in the Data & Set-up action to remove header & footer lines in the CSV like this.

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-To-New-Excel-Table/td-p/1826096

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What did you put in your initialize variable step? 

  • MiltonK Profile Picture
    22 on at
    replace(variables('VarCSV'),'OutputExport[','')

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard