Notifications
Announcements
Hi All!
When I try to evaluate a column condition of a collection to change the color of a circle, it doesn't work ...
Any idea how to refer to the collection?
Thanks in advance
Regards
S
@Kepcla
PowerApps is having trouble understanding which row in the collection you want to check. I believe you want it to look at the first one. Replace DaysFinal.Item1 with the code below in both places.
First(DaysFinal).Item1
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hi Kepda,
You're changing the color based on the collection, does this only contains 1 item?If yes: Power Apps does not know this and will check on the whole table which he can't determine if the value is "vacation".You can solve this by using First(DayFinal).Item1
If this is not the case, you will have to find a workaround.Can you provide a little more detail about the app?
Kind Regards,
Kenneth Nicasens
the "items1" column could be vacations or work:
Yes, that's true. But you cannot simply check to see if Items1 is equal to vacations or work because there are several rows and PowerApps doesn't know which row to check.
Which row do you want to check?
Actualy all (Item1)....maybe ForAll function could work...
Thanks to All, "First" function works!
Sorry clumsiness!!😥
Is not working...
First function just evaluate the 1st record...
I tried LookUp, Filter, ForAll, and not luck...
My brain is hanging upside down😖
I think it´s little more complicated, it´s a circle in a calendar.
The circle is visible according to the date column in the collection, (DateAdd(_firstDayInView,ThisItem.Value,Days) in DaysFinal.StartDate1) This code works OK..
But I need to paint with a color X the circle according to the item, and that is the problem...
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268