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 / How to set a column va...
Power Apps
Answered

How to set a column value based in other column

(0) ShareShare
ReportReport
Posted on by 565

Hi,

 

I have a table in Dataverse with records, and I added two new columns and I need to complete with existing column values.

I create a Gallery with this records and put a button with this formula, and the new "TeamDate" column does not receive the right value.

 

Existing columns:

'Modified By'

'Modified On'

 

New columns:

TeamMember

TeamDate

 

On the left side, I have the existing values and on the right the new columns, and after run this formula, the TeamDate value is not equal to 'Modified On'.

 

ForAll(GalleryBI.AllItems, Patch(tbd_BIPlatformRequests, ThisRecord, {TeamMember:ThisRecord.'Modified By'.'Full Name' , TeamDate: ThisRecord.'Modified On' }))

 

SetNewFields.png

 

Thanks for any help!

Categories:
  • Verified answer
    iClarkSi Profile Picture
    117 on at

    Hey @EmilioRoqueta69 ,

     

    I hope you are well.

     

    What is happening is that when you patch the item, you are modifying it. Even if you get the date correctly on the field, when you patch it, the default modified date will be changed.

     

    You will not be able to use the modified column value as the default for that. In order for both columns to show the same date, is to use Now() function.

     

    iClarkSi_0-1709815290747.png

     

    When you patch the item, they will have the same value.

     

     

    I hope this helps you!

  • EmilioRoqueta69 Profile Picture
    565 on at

    Yes, big issue iClarkSi  !

    Thank you

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard