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 / Splitting items from a...
Power Apps
Suggested Answer

Splitting items from a Choice Field.

(1) ShareShare
ReportReport
Posted on by 34
Hello all, 
 
I have a sharepoint list that stores all our bespoke sessions. In it is a field called Subject which is a choice field. We can select more than one subject that a session was about (e.g. SharePoint and OneDrive) I am trying to get my app to read through and count how many times a subject comes up so I can display that data in a gallery. I had something working when just checking a text field in the list but have issues with this choice field. 
 
I have tried many things including the below code which is meant to pull through and put all the subjects into a collection so I can count them but again, this isn't seperating any where multiple subjects have been picked. 
 
ClearCollect(
    colSubjectsList,
    ForAll(
        Filter('SHAREPOINTLISTNAME', !IsEmpty(Subject))
        ,
            {
                subjects: Concat(Subject, Text(Value), ", ")
            }
        )
    
);
Example of the output. 
 
Could anyone help me sort this out please. 
Categories:
  • Suggested answer
    developingteal Profile Picture
    392 on at
    split(string, 'character to split on(,)', 'character to replace with')
     
    I think this fits your needs. 
     
    An alternative and roundabout method is to push the data to an automate flow which parses it, maybe uses the above function, and rebuilds an array back to powerapps. 
     
    If the above function does not work, I can walk you through the automate method. 

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard