cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Eclectic211
Frequent Visitor

Powerapp Collection showing rows but no data

I'm attempting to load a collection from a datasource in the application.   I am getting the correct number of rows, and the fields are correct, but there is no data.  

 

What's weird is the row count is correct, so I know it's seeing the datasource and filtering correctly.

 

I read several threads about the data not being loaded at the time, so I put a button in to try doing it that way with the same result.

 

Eclectic211_0-1656436728403.png

 

 

Eclectic211_1-1656436780429.png

ClearCollect(lastUserEntries, Distinct(Filter('Labor Allocation', ActuallyCreatedBy = User().Email, Date >= DateAdd(Today(),-10,Days)), Resource));

 

Eclectic211_2-1656436837802.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@Eclectic211 

The use of the Distinct() function here is causing your problem.  Distinct(datasource,ColumnName) reduces the datasource table to a single column of unique values from the column name and renames the column "Result".  Your collection, lastUserEntries, will consist of one column of unique Resources named "Result". 

View solution in original post

2 REPLIES 2
Drrickryp
Super User
Super User

@Eclectic211 

The use of the Distinct() function here is causing your problem.  Distinct(datasource,ColumnName) reduces the datasource table to a single column of unique values from the column name and renames the column "Result".  Your collection, lastUserEntries, will consist of one column of unique Resources named "Result". 

It was a little of both, the collection was initialized for a different object, so I was also trying to put a square peg in a round hole.  Thank you for the help..

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,312)