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 / Show/Hide icon in Gall...
Power Apps
Unanswered

Show/Hide icon in Gallery based on two date dates

(0) ShareShare
ReportReport
Posted on by 321

H,

 

In my App I have a Gallery, within the Gallery is two dates, created date and complete date (from SP list date and time columns). I want to have an icon in the gallery that is only visible if the completed date was equal to or less than 3 months.

 

Any help appreciated.

 

Thanks

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JimboSey 

    Set the visibility property of the button to DateDiff(ThisItem.DateCompleted,Today(),Months)<3

  • JimboSey Profile Picture
    321 on at

    That works thank you. But I kinda need it work slightly differently. To explain...

     

    The created date is when feedback has been sent, the date completed is when the feedback was completed, I want the icon to show when the created date and completed date is within three months as this is a service level agreement, so Id like the icon to show as a representation that we achieved this within 3 months.

     

    Hope this helps.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JimboSey 

    !IsBlank(ThisItem.DateCompleted) && //There must be a completed date for the button to be visible
    DateDiff(ThisItem.DateCompleted,Today(),Months)<3 &&
    DateDiff(ThisItem.DateCreated,Today(),Months)<3

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard