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 / 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:
I have the same question (0)
  • 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard