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 / Concat of gallery drop...
Power Apps
Answered

Concat of gallery dropdown values not working

(0) ShareShare
ReportReport
Posted on by 125

Hi All

I have a gallery with 60 questions (sourced from SharePoint list) and with dropdown for user to select an answer, which is concatenated into JSON string by following action:

UpdateContext({
 S_result: Mid(Concat(QuestionsG.AllItems, "; Q" & ID & ":" & QScore.Selected.Value),3,1000)
});

The problem is that only first 10-15 values actually collected and all following are left blank. I added a label to check the output:

S_result & " 
 " & Mid(Concat(QuestionsG.AllItems, "; Q" & ID & ":" & QScore.Selected.Value),3,1000)

and hear is what I get: 

Q1:1; Q2:1; Q3:1; Q4:1; Q5:1; Q6:1; Q7:1; Q8:1; Q9:1; Q10:1; Q11:1; Q12:1; Q13:1; Q14:; Q15:; Q16:; Q17:; Q18:; Q19:; Q20:; Q21:; Q22:; Q23:; Q24:; Q25:; Q26:; Q27:; Q28:; Q29:; Q30:; Q31:; Q32:; Q33:; Q34:; Q35:; Q36:; Q37:; Q38:; Q39:; Q40:; Q41:; Q42:; Q43:; Q44:; Q45:; Q46:; Q47:; Q48:; Q49:; Q50:; Q51:; Q52:; Q53:; Q54:; Q55:; Q56:; Q57: 
 Q1:1; Q2:1; Q3:1; Q4:1; Q5:1; Q6:1; Q7:1; Q8:1; Q9:1; Q10:1; Q11:1; Q12:1; Q13:1; Q14:; Q15:; Q16:; Q17:; Q18:; Q19:; Q20:; Q21:; Q22:; Q23:; Q24:; Q25:; Q26:; Q27:; Q28:; Q29:; Q30:; Q31:; Q32:; Q33:; Q34:; Q35:; Q36:; Q37:; Q38:; Q39:; Q40:; Q41:; Q42:; Q43:; Q44:; Q45:; Q46:; Q47:; Q48:; Q49:; Q50:; Q51:; Q52:; Q53:; Q54:; Q55:; Q56:; Q57:

 Number of items with set values and blank values is always different, but usually set values are first 10-20 items.

Any ideas what could bee wrong?

Thanks   

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @romankorchak2 :

    The key is that the control data in Gallery only loads the displayed part, you just need to hold down the scroll bar to load all items once, and the error will disappear.

    vbofengmsft_0-1647397470162.png

    Best Regards,

    Bof

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard