cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Super User
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!

1 REPLY 1
Super User
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!

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 360 members 5,195 guests
Please welcome our newest community members: