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 / Data aggregation or lo...
Power Apps
Answered

Data aggregation or lookup in PowerApps?

(0) ShareShare
ReportReport
Posted on by 13

Hi all, 

 

I am working on a dataset having multiple projects in it. Each project has a unique id, but every unique project can have multiple rows due to the different products it has purchased, each unique product has its own row. The information in "Product name" and other columns related to a product are different for each unique product. I will upload the data to OneDrive, then use it as the data source for PowerApps. I wonder if PowerApps has some functions that can pull out all the information of a project by the unique ID, which means pulling out all the rows related to a project. It's like the vlookup in excel for data aggregation. 

 

Thank you so much!

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Yin,

     

    It looks like the GroupBy() function is what you want if there is a one to many relationship between projects and products. In that case, it would be GroupBy(Projects,"ProjectID","ProductInfo").  You could use a button with the OnSelect property:Collect(productsbyID,GroupBy(Projects,"ProjectID","ProductInfo") to create the Collection.   You can then display the results in a Gallery with a subGallery.  The Items property of the parent Gallery would be ProjectID.  You would display the information about the product in the subgallery with the Items property set to ProductInfo.  Both Galleries should be flexible height to accomodate both large and small subgallerys.  In the example, I collected some names by State from a table of customers. If this is not the case, please attach a screenshot of the data source table. groupby.PNG

     

    For more information check out for more details on the GroupBy() function:  https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-groupby

  • Yin Profile Picture
    13 on at

    Hi @Drrickryp,

     

    Thank you so much for your help. Sorry for the late reply, just got back from a business trip. Groupby is what I need. Now I got another questions. After grouping by the data in the gallery, how can I link the gallery with a search box? Normally, the search funtion can be typed in the Item property of the parent gallery. But the groupby function is in it now, how can I link the parent gallery with a search box? 

     

    Thank you so much, 

    Yin

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard