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 / Change a column depend...
Power Apps
Unanswered

Change a column depending on the day

(0) ShareShare
ReportReport
Posted on by 266

Hi,

I would like to make an inspection application, so when the user clicks on a button, I would like Now() to move to a proper column in the Excel file.

Could you please advise me on how to determine the right column for each day? For example, if the user clicks the button on 6/23/2020, I would like the current time to fill the column named 6/23/2020.

Thank you for your time!

screen2.PNG
screens.PNG
Categories:
  • eka24 Profile Picture
    20,925 on at

    The difficulty is there are many rows for a particular day 6/23/2020. which row should it be sent to?

    Try:

    Patch( Table1, Defaults( Table1), { 6/23/2020: Now() } )

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • pal95 Profile Picture
    266 on at

    Thank you for your reply!

    Before that, I click on an item in the gallery. Every single item in the gallery has it's own row. I basically would like to use the same row as an item in the gallery has. So, if we have 4 rows:
    A
    B
    C
    D
    I would like to have this date in A row and 6/23/2020 column if I clicked on an icon in the row A

  • eka24 Profile Picture
    20,925 on at

    I cant see any A in the excel you attached, can you show that with A, what column contains the A

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • pal95 Profile Picture
    266 on at

    Thank you for your reply. Here is the explanation of what exactly I want:

    Capture1.PNG
  • eka24 Profile Picture
    20,925 on at

    Use:

    Patch( Table1, First( Filter(Table1, ColumnWithD = "D" ) ), { 6/23/2020: Now() } )

    Replace the column ColumnWithD with the column containing the A, B, C, D 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • pal95 Profile Picture
    266 on at

    But this solution will work only on 6/23/2020. I would like the system to automatically detect the current date, so, if it is 6/26/2020, I would like the information to be written under a column 6/26/2020, but on 6/27/20 I would like to use the column 6/27/2020.

    Patch( Table1, First( Filter(Table1, ColumnWithD = "D" ) ), { 6/23/2020: Now() } )

    6/23/2020 must change automatically, depending on a the current date

  • pal95 Profile Picture
    266 on at

    up, still not solved

  • eka24 Profile Picture
    20,925 on at

    You are having issues because your table does not have Column with "D". If you have, what is the name of that column?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard