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

Community site session details

Session Id : MNOc9hTnVb98xTDF/x1DNt
Power Apps - Microsoft Dataverse
Answered

pie chart and choice column values

Like (0) ShareShare
ReportReport
Posted on 14 Apr 2024 11:44:09 by 2

I'm working on an app in power apps where I have a form which collects the users name "employee" and then a choice field, called "organization(s)", where the user can enter multiple choices, i.e. "Organization A", "Organization B". The form then submits the data into a dataverse table.

 

I'm struggling with making a pie chart in power apps based on the data submitted. I would want the chart to display the organizations based on the employees belonging to each organization so that one can see how big the organization are. The problem is that I think that because the choice column "organization(s)" has many possible values in it (on one row), I would have to split these values using ";" and then create a new table using i.e. a collection.

I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on 15 Apr 2024 at 08:49:35
    Re: pie chart and choice column values

    Hi @Tiley ,

     

    I have a list where includes a Choices column that allows multiple selections:

    vjefferni_0-1713170523525.png

     

    In my PowerApps App, I created a collection to ungroup all the items on the Choices column values, then group the ungrouped entries based on the 3 types of choice. In the pie chart, I'm able to show the proportion of the choices:

    vjefferni_1-1713170670175.png

     

    The formula to create the collection:

    ClearCollect(
     col22, //collection name
     AddColumns(
     GroupBy(
     Ungroup(
     test2, //SP list
     "Tools"
     ),
     "Value",
     "Grouped"
     ),
     "Count",
     CountRows(Grouped)
     )
    )

     

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard

Featured topics