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 / Group Pie Chart Data
Power Apps
Answered

Group Pie Chart Data

(0) ShareShare
ReportReport
Posted on by 6

Hello There,

I am having trouble trying to group a single column in my Pie chart correctly. I have a column that contains Windows OS systems in a type choice. The choices are "Windows 22, Windows 19, Windows 16, Windows 12". However, even if the response is the same it will not group them together into one. I understand I have to use GroupBy to make this happen but I do not understand how to do so.

The Pie chart is currently set up as Labels are "servertype" and the series is "versionnumber" (the series is set to versionnumber because it displays my data correctly, if there is a better way to do it please let me know.)

 

Any help would be greatly appreciated.

Categories:
I have the same question (0)
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Well_K  you halfway there, GroupBy will group your OS's into a ServerType group then you need to count the instance in the column for each servertype.

     

    Consider the following:

    create 20 records and assign each one a windows os with a random version number

    datasource = ClearCollect(colMyOs, ForAll(Sequence(20,12,2),{os: "Windows " & RandBetween(12,15) }))

     

    Grouping the column will result in return uniquely the windows os version number as ServerType

    GroupBy(colMyOs,"os", "ServerType")

     

    Now the count how many times a servertype occurs

    AddColumns(GroupBy(colMyOs,"os","ServerType"),"Total",CountRows('ServerType'))

     

    Result

    rubin_boer_0-1652031075009.png

     

    Hope it Helps,

    R

     

  • Well_K Profile Picture
    6 on at

    This solution worked perfectly. However, what would I do if I do not want the inputs to be random?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard