cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

ClearCollect returning one of 90 items

I have a label with Text set to: 

CountIf(FacAppCapBudget, budgetYear="2019")

Result: 90

I have a button OnSelect set to: 

ClearCollect(CurrentFacilityBudgets, LookUp(FacAppCapBudget, budgetYear="2019"))

 

Result: 1 item, which would be the first item alphabetically. 

 

What am I doing wrong here?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

LookUp() only returns the first result. You want to use Filter() in this case.

View solution in original post

2 REPLIES 2
Super User
Super User

LookUp() only returns the first result. You want to use Filter() in this case.

View solution in original post

Thanks. I've used Filter 20 times now and I suppose I just had a brainfart putting this together.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (82,036)