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 / Gallery update column
Power Apps
Unanswered

Gallery update column

(0) ShareShare
ReportReport
Posted on by 12

I have galllery which have a column Answered questions , I need to update this variable after how many answer has been selected for the selected one.

 

Appreciate the help for the same 

 

I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    could you post an image of your gallery? I'm not clear what you are asking in your question.

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

    Hi @anubhav29 ,

    Could you tell me:

    1)what does this mean: "how many answer has been selected for the selected one"?

    2)what data do you want to use to update "Answered questions" column?

    3)where do you want to selected answer, inside gallery? outside gallery? use what control?

    4)the data type of "Answered questions" column?

    Actually, just based on your description, I could not quite understand your issue.

     

    I assume that:

     you put multiple checkboxes inside the gallery and you use the checked number to update "Answered questions" column.

    "Answered questions" column is number type.

    The gallery looks like this:

    68.PNG

     Then you update the first line with 5,the second line with 3,the third line with 2.

    In this situation, you could set the arrow button's OnSelect inside the gallery:

    Patch(listname,ThisItem,
     {'Answered questions':
     If(Checkbox1.Value,1,0)+If(Checkbox2.Value,1,0)+
     If(Checkbox3.Value,1,0)+If(Checkbox4.Value,1,0)+
     If(Checkbox5.Value,1,0)
     }
    )

     

     

    Best regards,

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard