Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Query

#1
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 7

#3
SD-13050734-0 Profile Picture

SD-13050734-0 6

Overall leaderboard

Featured topics