cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Phu_Le
Level: Powered On

Count how many field result="OK" in one Row

Hi everyone,

I got a difficulty, I have a checklist with 22 points, If they scan OK code so the result of the field is "OK"

and if they scan NOT OK code so the result is "NOT OK" (They scan 22 times for one submit form)

 

And now I want to count how many points are OK (for 1 row in SharePoint list) and visible this counting on Gallery. Please Help!

Capture2.PNGCapture1.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Count how many field result="OK" in one Row

Hi @Phu_Le 

 

For calculating the number of OK in a specific row, please use the below expression:
CountRows(Filter(Split(ThisItem.Col1.Value &","& ThisItem.Col2.Value,","),Result = "OK"))
Here I had just two columns in my list so the highlighed part in formula has only two columns, please add all your columns here. The syntax would be <<Column>> & "," 
So if you want to add a third column,  you can modify the expression as 
ThisItem.Col1.Value &","& ThisItem.Col2.Value &","& ThisItem.Col3.Value
You can add all your columns in a similar way.MicrosoftTeams-image (102).png

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Count how many field result="OK" in one Row

Hi @Phu_Le 

 

For calculating the number of OK in a specific row, please use the below expression:
CountRows(Filter(Split(ThisItem.Col1.Value &","& ThisItem.Col2.Value,","),Result = "OK"))
Here I had just two columns in my list so the highlighed part in formula has only two columns, please add all your columns here. The syntax would be <<Column>> & "," 
So if you want to add a third column,  you can modify the expression as 
ThisItem.Col1.Value &","& ThisItem.Col2.Value &","& ThisItem.Col3.Value
You can add all your columns in a similar way.MicrosoftTeams-image (102).png

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,346)