cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
PM
Level: Powered On

Consolidated data from sharepoint lists into data table - Issue

All,

 

I need to consolidate data from 2 sharepoint lists - into 1 data table.

 

Tried doing it for 1 list - by using following syntax - within in the Data>Items- 

 

AddColumns(GroupBy('TestTracker', "Org Name", "Grouper"), "Positions", Sum(Grouper, Numberofitems))

 

When I go to Options - I expect to see the Grouper, Org Name etc.. as columns available for selection - but instead I see all columns from the List - testtracker.

 

What am I doing wrong?

 

thanks

PM

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Consolidated data from sharepoint lists into data table - Issue

Hi @PM,

 

Please take a try to create a collection, then use the collection with the items property of the Data Table, instead of using the formula directly.

A collection would hold the returned table of the Addcolumns function:

Formula should be:

Clearcollect(CollectionName, 
                  AddColumns(
                            GroupBy('TestTracker', 
                                            "Org Name", 
                                             "Grouper"), 
                             "Positions", 
                            Sum(Grouper, Numberofitems)
                                       )
                      )

Copy and paste the following formula and paste it to the OnVisible Property of the Screen, then change the items property of the Data table as CollectionName.

Then you should be able to find the defined column.

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
PM
Level: Powered On

Re: Consolidated data from sharepoint lists into data table - Issue

Is this a valid usage of Data table - to be able to show consolidated data from sharepoint list - or am I getting it wrong?

Community Support Team
Community Support Team

Re: Consolidated data from sharepoint lists into data table - Issue

Hi @PM,

 

Please take a try to create a collection, then use the collection with the items property of the Data Table, instead of using the formula directly.

A collection would hold the returned table of the Addcolumns function:

Formula should be:

Clearcollect(CollectionName, 
                  AddColumns(
                            GroupBy('TestTracker', 
                                            "Org Name", 
                                             "Grouper"), 
                             "Positions", 
                            Sum(Grouper, Numberofitems)
                                       )
                      )

Copy and paste the following formula and paste it to the OnVisible Property of the Screen, then change the items property of the Data table as CollectionName.

Then you should be able to find the defined column.

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

PM
Level: Powered On

Re: Consolidated data from sharepoint lists into data table - Issue

Thank you very much @v-micsh-msft- this was precisely what I was missing. I also noticed there are no controls to change the column heading font size - is that something being worked upon/am I not looking at the right space.

PM
Level: Powered On

Re: Consolidated data from sharepoint lists into data table - Issue

Nevermind - please ignore. Found it.

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,376)