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 / Collection - Transform...
Power Apps
Answered

Collection - Transform Rows to Columns

(0) ShareShare
ReportReport
Posted on by 147

Hello

I'm facing an issue on Collection, Transform Rows to Columns.

My Collection looks like 

TitleQuarterScore
XYZQ180
XYZQ260
XYZQ450
ABCQ190
ABCQ376

 

I'm looking for

TitleQ1Q2Q3Q4
XYZ8060 50
ABC90 76 

 

How to achieve this ?

Thank you for your support.

BR

ananda

 

Categories:
I have the same question (0)
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @ananda 

    Please consider changing your Formula to the following:

    ForAll(
     GroupBy(yourData,
     "Title", 
     "_recs"
     ),
     {Title: Title,
     Q1: LookUp(_recs, Quarter="Q1", Score),
     Q2: LookUp(_recs, Quarter="Q2", Score),
     Q3: LookUp(_recs, Quarter="Q3", Score),
     Q4: LookUp(_recs, Quarter="Q4", Score)
     }
    )

    This will produce the results that you have asked for.

     

    I hope this is helpful for you.

  • Ananda Profile Picture
    147 on at

    WOW, Worked liked charm..

    Kudos...

  • lonerwalker Profile Picture
    3 on at

    Hey! 

     

    thanks for the advice, but I'm not getting the results in my table , what can I do for this? 

     

    ForAll(
     GroupBy(
     Forecast;
     "ItemCode";
     "Cliente";
     "_recs" //variable auxiliar sacada de una solucion en la comunidad
     );
     {
     ItemCode: ItemCode; 
     Cliente: Cliente;
     ENE: LookUp(_recs; Date = "01-01-2023"; Quantity);
     FEB: LookUp(_recs; Date = "02-01-2023"; Quantity);
     MAR: LookUp(_recs; Date = "03-01-2023"; Quantity);
     ABR: LookUp(_recs; Date = "04-01-2023"; Quantity);
     MAY: LookUp(_recs; Date = "05-01-2023"; Quantity);
     JUN: LookUp(_recs; Date = "06-01-2023"; Quantity);
     JUL: LookUp(_recs; Date = "07-01-2023"; Quantity);
     AGO: LookUp(_recs; Date = "08-01-2023"; Quantity);
     SEP: LookUp(_recs; Date = "09-01-2023"; Quantity);
     OCT: LookUp(_recs; Date = "10-01-2023"; Quantity);
     NOV: LookUp(_recs; Date = "11-01-2023"; Quantity);
     DIC: LookUp(_recs; Date = "12-01-2023"; Quantity)
     }
    )

     

     

    lonerwalker_0-1686664792540.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

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard