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 / Having multiple issues...
Power Apps
Answered

Having multiple issues with collection

(0) ShareShare
ReportReport
Posted on by 21

Hello Everyone,

 

Hoping to get some help here, I am trying to create a table collection from a table in Excel. I created a button with the following formula in the OnSelect property:

 

 

ClearCollect(colHistory, SortByColumns(Filter(History, Not(IsBlank(Date)) && Not(IsBlank(Close))),"Date",SortOrder.Descending)) //History is a table from Excel
DropColumns(colHistory,"Days","High","Low","Open","Volume")

 

 

Last night, it was working except for it added all the columns in the collection. I saved and closed it to work on removing the unwanted columns the next morning. This morning, upon running it, it gave me this error:

Harold__0-1692380984384.png

So I removed the SortByColumns, which resolved the error; however, here are some issues that I am now encountering:

  • The button is showing a Delegation warning: The highlighted part of this formula might not work correctly on large data sets. The "And" operation is not supported by this connector.
  • The colHistory collection is not returning the updated data, even after refreshing the History data.
  • The data seems inacurate. Please check the prices and the date
  • The colHistory collection, is returning all columns and all blank rows

Harold__0-1692392048232.png

Harold__1-1692392144099.png

Harold__3-1692381874344.png

 

My objective is:

  • I want to create a collection with just 2 columns (Date and Close ONLY) from an Excel Table with 7 columns and 260 rows.
  • The collection must not include blank rows
  • The collection data must be accurate

Thanks in advance.

 

Categories:
I have the same question (0)
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    Try this to see if it works better for you, and keep in mind Excel data sources are limited in size (500 rows, I believe)

    With({aFilter: SortByColumns(History, "Date", SortOrder.Descending)},
     ClearCollect(colHistory, 
     ShowColumns(
     Filter(aFilter, Date <> Blank(), Close <> Blank()),
     "Date",
     "Close"
     )
     ) 
    )

    Hope that helps,

    Bryan

  • Harold_ Profile Picture
    21 on at

    Thanks Bryan, this fixed the problem!

  • Harold_ Profile Picture
    21 on at

    Hey Bryan, it worked for a split second then now it is not showing any data.

    Harold__0-1692628504578.png

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    Check to make sure no one has the excel file open - this has hung up the connector me in the past.

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
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard