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 Apps / Handle CSV files where...
Power Apps
Unanswered

Handle CSV files where the # of duplicate column names can change

(0) ShareShare
ReportReport
Posted on by

I have a CSV file that can contain duplicate column names, which are automatically sequenced when brought into the Query.

eg.  CSV file has: 

       Key

       Label

       Label

       Component

       Component

       Component

 

Loaded with column names:

       Key

       Label

       Label_1

       Label_2

       Component

       Component_3

       Component_4

 

The sequence number can change whenever additional columns are added.  For instance, if a fourthLabel column is on the file, the load will impact both Label and COmponent column names, e.g.

       Key

       Label

       Label_1

       Label_2

       Label_3

       Component

       Component_4

       Component_5

 

I figured out how to merge the columns in the query, but whenever additional columns are added I have to go into the Advanced Editor and add the new column and rename other columns.

 

I am wondering if there is a way to set up logic to loop thru the column names and include all columns with the same starting column name into one merged column.

    So in the initial example: 

           Merged Labels would include Label, Label_1, Label_2

           Merged Components would include Component, Component_3, Component_4

 

    Then when a fourth Label column shows on the file, 

           Merged Labels would include Label, Label_1, Label_2, Label_3

           Merged Components would include Component, Component_4, Component_5

 

Any ideas?

Thanks

Categories:
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 516

#2
WarrenBelz Profile Picture

WarrenBelz 428 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 292

Last 30 days Overall leaderboard