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 / How to display a colum...
Power Apps
Answered

How to display a column within a PowerApps Gallery which includes data from several SharePoint records

(0) ShareShare
ReportReport
Posted on by 8

I have a SharePoint list with three fields in it: Project, Request and Release. What I want to do is to display the Release information for Projects showing the sorted and distinct Releases for each project as in the example below:

 

Project         Release

A100            BC20.10

                    BC20.11

                    BC21.01

B100            BC20.09

                    BC21.01

 

The SharePoint records are as follows:

Project         Request     Release

A100            001            BC20.11

A100            002            BC20.10

A100            003            BC20.01

A100            004            BC20.10

B100            001            BC20.09

B100            002            BC20.01

B100            003            BC20.09

 

Does anyone have any ideas of how to accomplish this within PowerApps? Thanks!

 

 

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @DavidG3276 ,

     

    Could you tell me:

    What are the data types of the three columns? Are they all ‘Single line of text’ columns?

    What control do you use to display data? Is it a gallery control?

     

    If my assumptions are correct, you could try the following steps:

    1\ Add a gallery control and set its Items property to:

    GroupBy(LIST64,"Project","Release") // LIST64 is the name of my list

     

    Insert a label control to this gallery control and set its Text property to:

    ThisItem.Project

     

    2\ Embed a gallery control into the gallery control and set its Items property to:

    Distinct(ThisItem.Release,Release)

     

    Insert a label control to this gallery control and set its Text property to:

    ThisItem.Result

     

    3\ The result is as follows:

    v-xiaochen-msft_0-1612143981017.png

     

     

    Best Regards,

    Wearsky

    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • DavidG3276 Profile Picture
    8 on at

    I believe your assumptions are right. However, I haven't used ThisItem.Result previously and have not had much luck finding out much about it online. What does it do? Thanks for your help.

  • DavidG3276 Profile Picture
    8 on at

    One other thing - I would like the Release to be sorted so that for A100, the releases would show in the order of BC20.01,BC20.10 and BC20.11.

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @DavidG3276 ,

     

    Firstly, If you use the Distinct() function,Its output is the result table.

     

    Secondly, If you want to sort the results, please modify the following formula.

    Set the gallery control's Items property to:

    SortByColumns( Distinct(ThisItem.Release,Release),"Result",Ascending)

    v-xiaochen-msft_0-1612489176144.png

     

    Finally, the result is as follows:

    v-xiaochen-msft_1-1612489216448.png

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

  • DavidG3276 Profile Picture
    8 on at

    Thank you so much!

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 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard