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 III
Dual Super User III

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 III
Dual Super User III

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,604)