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 Apps / Auto create tables bas...
Power Apps
Unanswered

Auto create tables based on variables

(1) ShareShare
ReportReport
Posted on by 17

Hi community,

 

I have a set of data in a SharePoint list that is in this format:

 

Cost CentreYearSalaryYearSalaryYearSalary
T4511202410000202510000202610000
T45272023450020245000  
O10582025500020264500202710000

 

I need to transform this into a table that then looks like this:

 

Cost CentreYearSalary
T4511202410000
T4511202510000
T4511202610000
T452720234500
T452720245000
O105820255000
O105820264500
O1058202710000

 

I'm currently doing this by:

  1. Duplicating the base table
  2. Removing the columns from the other year and salary columns that I don't need to pivot
  3. Pivoting the year and salary columns
  4. Repeat for each year
  5. Appending all the tables back together at the end

Curious to know if there is a way automate this rather than having to create each table?

 

Cheers

Carl

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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard