web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating a Single Coll...
Power Apps
Unanswered

Creating a Single Collection Using All Columns from Two SharePoint Lists

(0) ShareShare
ReportReport
Posted on by

I am trying to create a single collection using data from two SharePoint lists.

My two lists look something like this:

List 1: Metric Values

TitleMetricIDMTD ActualMTD TargetReporting MonthReporting FY
Metric A1.74.75723
Metric A1.77.75823
Metric B2.81.8723
Metric B2 .8.8823

List 2: Metric Attributes

Metric NameMetricIDDefinitionOwner (person field)Reporter
(person field)
Reporting Cadence
Metric A 1Definition AJohn SmithJane DoeMonthly
Metric B2Definition BAngela JonesAndy WoodsMonthly


I want to pull all records from List A where Reporting Month = VarMonth and Reporting FY= VarFY (two variables I have set onstart of the app), and the matching records using the MetricID from List B into one collection using the MetricID column as a unique Identifier. I need all of the columns from both lists to use that collection to display the Values and the Attributes in the same gallery and be able to filter the gallery using columns from both.
So the end Result would be something like this if Varmonth=7 and VarFY=23

TitleMetricIDMTD ActualMTD TargetReporting MonthReporting FYMetric NameDefinitionOwner (person field)Reporter
(person field)
Reporting Cadence
Metric A1.74.75723Metric ADefinition AJohn SmithJane DoeMonthly
Metric B2.81.8723Metric BDefinition BAngela JonesAndy WoodsMonthly

I've seen several questions like this all with different solutions but can't seem to get any of them to work for me.

Thank you! 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,541 Most Valuable Professional on at

    Hi @__1 ,

    Try this structure for a start

    ClearCollect(
     colMyCol,
     AddColumns(
     'Metric Values',
     "Definition",
     LookUp(
     'Metric Attributes',
     'Metric Name' = Title
     ).Definition,
     "Owner",
     LookUp(
     'Metric Attributes',
     'Metric Name' = Title
     ).Owner.DisplayName,
     "Reporter",
     LookUp(
     'Metric Attributes',
     'Metric Name' = Title
     ).Reporter.DisplayName,
     "ReportingCadence",
     LookUp(
     'Metric Attributes',
     'Metric Name' = Title
     ).'Reporting Cadence'
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    153,541 Most Valuable Professional on at

    Hi @__1 ,

    Try this structure for a start

    ClearCollect(
     colMyCol,
     AddColumns(
     'Metric Values',
     "Definition",
     LookUp(
     'Metric Attributes',
     'Metric Name' = Title
     ).Definition,
     "Owner",
     LookUp(
     'Metric Attributes',
     'Metric Name' = Title
     ).Owner.DisplayName,
     "Reporter",
     LookUp(
     'Metric Attributes',
     'Metric Name' = Title
     ).Reporter.DisplayName,
     "ReportingCadence",
     LookUp(
     'Metric Attributes',
     'Metric Name' = Title
     ).'Reporting Cadence'
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 422

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard