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

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
Highlighted
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
Highlighted
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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,145)