cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Count of share point list column

I have a Sharepoint list that has a calculated column that based on a date returns a Yes or No I would like to know how to create a flow that will send an email identifying how many Yes and How many No’s are in the list . I am looking for a total count for each 

any help would be appreciated 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you provide more details about Calculated column?

I did a test on my side, creating a similar calculated column, data type is Yes/No, and returns Yes when TodaysDate is greater than EndDate.

20.PNG

  • Use Get items to get all the items and initialize the integer variable to store the count of Yes.

21.PNG

  • Iterate through all the items. If the value of this field is 1 (Yes is 1, No is 0), then the variable is incremented by 1.

22.PNG

  • Use the number of all items minus the number of Yes to get the number of No.
sub(length(body('Get_items')?['value']),variables('CountYes'))

23.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-bacao-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you provide more details about Calculated column?

I did a test on my side, creating a similar calculated column, data type is Yes/No, and returns Yes when TodaysDate is greater than EndDate.

20.PNG

  • Use Get items to get all the items and initialize the integer variable to store the count of Yes.

21.PNG

  • Iterate through all the items. If the value of this field is 1 (Yes is 1, No is 0), then the variable is incremented by 1.

22.PNG

  • Use the number of all items minus the number of Yes to get the number of No.
sub(length(body('Get_items')?['value']),variables('CountYes'))

23.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,500)