cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

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
Microsoft
Microsoft

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
Helper III
Helper III

HI all, 

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

 

 

Thanks

Microsoft
Microsoft

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (71,660)