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 / Thumbs up visible if "...
Power Apps
Answered

Thumbs up visible if "Modified date" is within 1 year

(0) ShareShare
ReportReport
Posted on by 440

I would like to have a thumbs up indicator in my gallery which appears when the item's "Modified" date in the SP list is less than 1 year. 

I know I need to put some type of function into the Visible property but I am too much of a noob to know where to start.

Categories:
  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    Hi

    You can use the DateDiff formula 

     

    Icon.Visible = DateDiff( Now(), ThisItem.[Modified column], TimeUnit.Months ) < 12

     
    Regards,

  • nshaw75 Profile Picture
    440 on at

    Hi @QuentinDURIEZ 

    Where would I enter this formula, I have added it into the Visible value on the Icon and I am getting an error

     

  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    In the visible property of the icon.

    What type of error do you have ?

     

    [Modified column] should be replaced by the actual name of your column.

  • nshaw75 Profile Picture
    440 on at

    Hi @QuentinDURIEZ the error is saying Incompatible types for comparison. It say the formula cannot be evaluated because the values are not the same type.

  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    Are you using the standard Modified column from SharePoint ?

     

    Icon.Visible = DateDiff( Today(), ThisItem.[Modified column], TimeUnit.Months ) < 12

     
    If yes, try by replacing Now() with Today()

    Regards,

  • nshaw75 Profile Picture
    440 on at

    Hi @QuentinDURIEZ , yes I am utilising the standard column and which has the column ID as Modified and this is my formula in the Visible field

    Icon.Visible= DateDiff( Today(), ThisItem.[Modified], TimeUnit.Months ) < 12
     
  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    Remove the brackets, that's was part of the placeholder

     

     

    DateDiff( Today(), ThisItem.Modified, TimeUnit.Months ) < 12

     

     

  • nshaw75 Profile Picture
    440 on at

    Hi @QuentinDURIEZ Thanks, this has removed the red line from all of the formula apart from underneath  .Visible=

  • Verified answer
    QuentinDURIEZ Profile Picture
    577 Moderator on at

    Don't consider "Icon.Visible=", that's just a way for me to tell you where to put the formula

    To be clear, the Visible property of your Icon needs to be 

     

    DateDiff( Today(), ThisItem.Modified, TimeUnit.Months ) < 12

     

    Sorry if my notation disturb you !

    Regards,

  • nshaw75 Profile Picture
    440 on at

    Hi @QuentinDURIEZ  

    Thank you. It's not your notation, it's me being a noob really. I should have twigged that it should be that. 🤦‍♂️

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard