cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhinesh28R
Post Partisan
Post Partisan

pie chart count Rows

Hi,

 

In my list i have a following Name field ,
Suresh

Dani,

Rajan,

Arun,

Suresh,

Dani...


Now i want a count for name into a piechart.

Am using a follwing formula to get a count for name column into a piechart,
AddColumns(GroupBy(AddColumns(List, "Name1",Name), "NAme1", "NameColumn"), "Count", CountRows(NameColumn)).



But am didnt get count.

 

How to get in a piechart?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Dhinesh28R ,

 

PieChart control has a property named 'Series'.

We can only use number columns on this property. (Such as 'ID' instead of a text column).

 

Please see the steps below:

1\ This is my list 'LIST79'

v-xiaochen-msft_0-1614074091670.png

 

2\ Set the Items property of PieChart control to:

AddColumns(GroupBy(AddColumns(LIST79,"name1",TestName),"name1","TestName"),"Number",CountRows(TestName))

 

3\ Set the Series proper to :

Number

v-xiaochen-msft_1-1614074156000.png

 

 

4\ Set Items property of Legend control to:

AddColumns(GroupBy(AddColumns(LIST79,"name1",TestName),"name1","TestName"),"Number",CountRows(TestName)).name1

 

5\ The result is as follows:

v-xiaochen-msft_2-1614074224291.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

View solution in original post

3 REPLIES 3
Dhinesh28R
Post Partisan
Post Partisan

HI all, 

this formula also working i changed  label items with above formula ... and also changed a column chart label.. then its working..

 

 

Thanks

v-xiaochen-msft
Community Support
Community Support

Hi @Dhinesh28R ,

 

PieChart control has a property named 'Series'.

We can only use number columns on this property. (Such as 'ID' instead of a text column).

 

Please see the steps below:

1\ This is my list 'LIST79'

v-xiaochen-msft_0-1614074091670.png

 

2\ Set the Items property of PieChart control to:

AddColumns(GroupBy(AddColumns(LIST79,"name1",TestName),"name1","TestName"),"Number",CountRows(TestName))

 

3\ Set the Series proper to :

Number

v-xiaochen-msft_1-1614074156000.png

 

 

4\ Set Items property of Legend control to:

AddColumns(GroupBy(AddColumns(LIST79,"name1",TestName),"name1","TestName"),"Number",CountRows(TestName)).name1

 

5\ The result is as follows:

v-xiaochen-msft_2-1614074224291.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

View solution in original post

Hi @v-xiaochen-msft ,

Thank man, Its working fine man. But didnt display count '1' in Pie chart man apart from 1 it shows 2,3,4 .. but dont display 1. But while Mouse Hovering it will display 1. otherwise dont.

I found a solution man. Because of More records it wont diaplsy 1. When i delete some records it display 1.

 

And , I have a another doubt man

 

.Graph.png Shall we display a Count in numbers along with name1 in Legand man? Like above Image.

 

Is it Possible?

 

 

Thanks,

Dhinesh

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (3,198)