cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArtU
Regular Visitor

Thisitem.ModifiedDate value

Hello All,

 

I like to mark records in gallery base on last modified date in color. But the formula "If(DateDiff(ThisItem.ModifiedDate, Today()) <= 3,Color.Green)" is not working. The value of "ThisItem.ModifiedDate" is not get.

13 REPLIES 13
WarrenBelz
Super User III
Super User III

Hi @ArtU ,

Is this SharePoint you are using, if so

If(
   DateDiff(
      ThisItem.Modified, 
      Today()
   ) <= 3,
   Green
)

You will get a Delegation warning on this however. Also where are you putting this code?

 

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 the content was useful in other ways, please consider giving it Thumbs Up.

CNT
Community Champion
Community Champion

@ArtU What is the Items property for the gallery?

Hi,

I put it at Gallery.Fill

I update it as "If(DateDiff(Now(), Today()) <= 3,Color.Green)", it works. so it's "ThisItem.ModifiedDate" value get issue. this value is from sharepoint list last modified date.

 

 

ArtU
Regular Visitor

Hi,

 

i made a Sort and Filter at the Items property for the gallery. It likes this.

 

SortByColumns(
If(
HeaderGallery.Selected.Value = "YES",
Filter(
list,
SearchBox.Text in ID
)

CNT
Community Champion
Community Champion

@ArtU Change ThisItem.ModifiedDate to ThisItem.Modified

ArtU
Regular Visitor

@CNT, It's not work. the Data type is: DateTime. But I can't get this value.

CNT
Community Champion
Community Champion

@ArtU What is your datasource, SharePoint? Dataverse?

ArtU
Regular Visitor

SharePoint as I mentioned

CNT
Community Champion
Community Champion

@ArtU Just to test, add a label in your gallery to and set its Text property to ThisItem.Modified

Do you see the date for each Item?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,424)