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 / Pie chart from Sharepo...
Power Apps
Answered

Pie chart from Sharepoint choice column

(0) ShareShare
ReportReport
Posted on by 12

Hi all, I am a newbie when it comes to Power Apps and am struggeling with getting information from a choice column into a pie chart.

 

The choice column is called "Saksstatus" and has four different choices:

 

Registrert

Lukket

Tiltak planlagt

Tiltak utført

 

The list is called "Registreringer"

 

I need a pie chart with the total number of each row with the different choices.

 

I have played around with AddColumn and GroupBy functions to no avail.

 

Anyone able to help? 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Binntore ,

     

    I did a demo for you.

    1\ This is my list.

    vxiaochenmsft_0-1630978471447.png

     

    2\ Add a pie chart and set its Items property to:

    ForAll(Choices(LIST165.Saksstatus) As A,{Number:CountIf(ForAll(LIST165,ThisRecord.Saksstatus.Value) As B,B.Value=A.Value),Value:A.Value})

     

    3\ The result is as follows:

    vxiaochenmsft_1-1630978508276.png

    vxiaochenmsft_2-1630978517991.png

     

    Best Regards,

    Wearsky

     

     

  • Binntore Profile Picture
    12 on at

    Thank you very much Wearsky, it worked like a charm 🙂

  • cagmiterek Profile Picture
    2 on at

    Hi! I could use your help too. 

     

    How would I do this but with a list that has multiple words? I try to input MY list name with the words connected, and it's showing the error. 

     

    Thank you so much! 

  • SunilPrakash Profile Picture
    18 on at

    Is there any way to show percentages for the same text out of Hundred% ?

  • Community Power Platform Member Profile Picture
    on at

    Thanks! 

    I have an additional dilemma.

     

    In my SharePoint list, I have a text column named "Country".

    In my app I have a dropdown which delivers a variable called "SelectedCountry" using formula Set(SelectedCountry,Country_selection.Selected.Result)

     

    I'm trying unsuccessfully to add a filter to the chart formula, so the chart only displays data where the column "Country" is equal to "SelectedCountry"

     

    Any help is appreciated! 

  • Clewsy Profile Picture
    4 on at

    I can get this to work fine, but would I modify to function to also show blank choices?

     

    cheers

  • AmyF Profile Picture
    235 on at

    I'd like to know that too.  Did you ever find that solution?

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard