web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add value to same row ...
Power Apps
Answered

Add value to same row in excel using Icon/Button

(0) ShareShare
ReportReport
Posted on by 19

Hello everyone,

I’m trying to build this app for case documentation, but I struggle in this step. I want to add a new case and the feedback on it to the same form.

My goal is to get this data written to an excel file in the same row like this>

ali20_0-1655158290066.png

 

 

ali20_1-1655158290094.png

 

 

But when I click on the smiley face, it creates a new record in a new row as following>

ali20_2-1655158290096.png

 

 

I’m using this formula>

ali20_3-1655158290098.png

 

 

Can you please help me, how should I get this done, and which formula to use?

Categories:
I have the same question (0)
  • Sunil-Narnaware Profile Picture
    681 on at

    @ali20 , when you are patching the new record, make sure you are passing the required field values everytime.. in your case you are just passing values for 'Tob Box' field and not others.. so add all the other fields and it should work.. but if you are patching an existing record then first you have to find that record and patch it..

  • ali20 Profile Picture
    19 on at

    Hi Sunil, thanks for your reply. I am already passing field values for columns.
    Here what I want to achieve: 
    1- Enter data in the app
    2- Select one of the smiley faces (Which should add value "1" to excel after I save all)
    3 Select Save

  • Sunil-Narnaware Profile Picture
    681 on at

    @ali20 when you hit Save, what is the action you are doing? can you share that code ?

  • ali20 Profile Picture
    19 on at

    I have this:

    Screenshot_20220614-010548_Chrome.jpg

  • Sunil-Narnaware Profile Picture
    681 on at

    @ali20 but above you mentioned about Patch statement.. can you please share the purpose of it? How is your smiley thing tied to rating?

  • ali20 Profile Picture
    19 on at

    Hi Sunil, 

    It's not an action for rating, but I use this to get the input "1" in the excel sheet where I have another table connected to this column to calculate the total user's numbers/performance based on the feedback he got from the customers.

     

    So, as mentioned above my goal is to get this data written to an excel file in the same row like this>

    ali20_0-1655215768446.png

     

      

  • ali20 Profile Picture
    19 on at

    @CarlosFigueira Can you please help here?

  • v-yujincui-msft Profile Picture
    on at

    Hi @ali20 ,

     

    You need to specify the record you just submitted for the Patch() function.

    I have made a test for your reference.

     

    Here is my App.

    Set(variableTB,"1")
    Patch(datasource,EditForm1.LastSubmit,{'Tob Box':variableTB});Set(variableTB,"")

    vyujincuimsft_0-1655438379308.png

    Result Screenshot:

    vyujincuimsft_1-1655438487714.png

     

     

    Best Regards,
    Charlie Choi

  • ali20 Profile Picture
    19 on at

    Hi @v-yujincui-msft ,
    thank you so much for your help. That's whated I want to do. I still have one quetion, how to do I get every varible under its column. For example: 
    Set(variableTB,"1") > put the value in column "Tob Box"

    Set(variableMB,"1")> put the value in column "Middle Box"

    Set(variableBB,"1")> put the value in column "Buttom Box"

     

    To be Like this:

    ali20_0-1655479185282.png

     

  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @ali20 ,

     

    I have made a test for your reference.

     

    Here is my App.

    Set(variableTB,"1");Set(variableMB,"");Set(variableBB,"")
    Set(variableMB,"1");Set(variableTB,"");Set(variableBB,"")
    Set(variableBB,"1");Set(variableTB,"");Set(variableMB,"")
    Patch(datasource,EditForm1.LastSubmit,{'Tob Box':variableTB,'Middle Box':variableMB,'Buttom Box':variableBB});Set(variableTB,"");Set(variableMB,"");Set(variableBB,"")

    vyujincuimsft_0-1655690718613.png

    Result Screenshot:

    vyujincuimsft_1-1655690924057.png

     

     

     

    Best Regards,

    Charlie Choi

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard