web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Evaluation of a Date c...
Power Apps
Unanswered

Evaluation of a Date column to format buttons

(0) ShareShare
ReportReport
Posted on by 39

Hello,

I've been wracking my head regarding this, I'm trying to format some buttons (left side) consisting of a gallery using ThisItem.ActionCategory from a collection (colActionCategoryTable) grabbed from my main Sharepointlist (Text column).

 

Right now I use the buttons to set a variable to ThisItem.ActionCategory which I then use to filter the main gallery (sharepoint list with mostly simple columns) based on the ActionCategory column, it also highlights the selected category i.e. what button I've pressed.

Screenshot 2024-04-26 2.png

 

However I would like to add some more formatting, namely that all buttons changes colour etc if there are any actions overdue in their corresponding ActionCategory, I suspect the criteria are the following:

If the Column StatusDate is equal or less than todays date

AND Status is set to "Open" OR "New Action"

AND Action Category corresponds to the ThisItem.ActionCategory

 

I assume I'd need to collect and evaluate these three columns using ForAll( in the OnStart property but I cant get anything to work.

So far I've managed to grab the 3 columns in question but have no idea how to get it evaluated smoothly and returning something I can add to e.g. Switch( or similar...

Here's the collection I managed to grab

Screenshot 2024-04-26.png

 

Am I way of here?

Categories:
I have the same question (0)
  • Mitanshu Profile Picture
    1,658 Moderator on at

    As you don't have too many Action Categories, you can achieve this using nested gallery on the left side.

     

    Within your left gallery (gal_leftNav_Parent): You already have a button control. 

    Now add another gallery control (gal_leftNav_Child) within the parent gallery?

    This sub-gallery (gal_leftNav_Child) will be of width=1, height=1. 

    It will not have any controls, just the item property

    The item property of sub-gallery will Filter your master SP List based on your business logic for ThisItem.ActionCategory

     

    Now, within your main gallery (gal_leftNav_Parent), you can format button based on AllItemCount of the sub-gallery

     

    happyume_0-1714358025738.png

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard