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 / Gallery "Modified" tex...
Power Apps
Answered

Gallery "Modified" text label visible IF

(0) ShareShare
ReportReport
Posted on by 24

Hello,

 

I am trying to improve my gallery, and was wondering what would be the correct syntax for "Visible" in a Gallery text label. I currently have a Gallery that show the "Created" date. I am wanting to add another text label that will only be visible if the form has been Modified that will show the Modified Date info. I don't want both "Created" and "Modified" to be visible at the same time because it might cause confusion.

Label36 = Modified

DateCreated_2 = Created

I've tried:

   If(Label36 <> DateCreated_2, true,false)

   If(Label36 < DateCreated_2, true,false)

Is there a way to only make the Gallery text label "Modified" visible "IF" the form is modified? 

 

Thanks,

rail

Categories:
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @rail ,
    Just an idea, you can show whichever is the latest.
    On visible property of Created label
    ThisItem.Created > ThisItem.Modified
    On visible property of Modified label 
    ThisItem.Created < ThisItem.Modified

     

     

  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @rail ,

     

    Another method would be to use "Coalesce()" function to return the first non blank result.

     

    Label.Text: Coalesce(ThisItem.Modified, ThisItem.Created)

     

    Performance-wise, it changes nothing. It's just a way to display the first non-blank item.

  • rail Profile Picture
    24 on at

    I was able to make it work by using the ThisItem.Created < ThisItem.Modified in the "Modified" label. Thank you for the super quick response!

     

    rail_0-1680274357203.png

     

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 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard