Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Transpose collection record with multiple columns to rows

Posted on by

Hi

I've tried to google this and looked on her, but can't find a solution to something that seems like it 'should' be easy....

I have a collection (filtered to only bring back 1 record), that has a number of columns.

IDscore 1score 2score 3score 4
1002448

 

to create a spider chart, I need to give it data like this

 

Score nameScore
score 12
score 24
score 34
score 48

 

I was using PowerBi previously to do the transformation but I can't use it so need a new solution. I have a component that I found online for a spider chart and now need to build the data for it

 

Any ideas?

Thanks

Categories:
  • Verified answer
    Lisa3 Profile Picture
    Lisa3 46 on at
    Re: Transpose collection record with multiple columns to rows

    Take the item from the first collection to make a second collection with a line for each score.  

    ClearCollect(collection2,
    {'Score name': "score 1",
    Score: First(collection1).'Score 1'},
    {'Score name': "score 2",
    Score: First(collection1).'Score 2'})

    Lisa3_0-1693926453501.png

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,297

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,890

Leaderboard