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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Users online (2,898)