cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahamedmujahid92
New Member

COUNT SPECIFIC WORD IN FORM

Hi,

 

I have to count Specific word ("Good & Not Good") in Form1. 

It means,
No of "Good" count should Reflect in Textbox or Label

No of "Not Good" count should Reflect in Textbox or Label

 

Please find the screenshot

ahamedmujahid92_0-1669352152088.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Sundeep_Malik
Community Champion
Community Champion

Hey @ahamedmujahid92 

In the text property of the label do this:

 

Good Label:

 

Sum(If(DataCardValue1.Text="Good",1,0),If(DataCardValue2.Text="Good",1,0).....Rest for other datacards...)

 

For Not Good Label do this:

 

Sum(If(DataCardValue1.Text="Not Good",1,0),If(DataCardValue2.Text="Not Good",1,0).....Rest for other datacards...)

 

View solution in original post

v-bofeng-msft
Community Support
Community Support

Hi @ahamedmujahid92 ,

 

Please try:

 

No of "Good" count should Reflect in Textbox or Label

If(Label1.Text="Good",1,0)+
If(Label2.Text="Good",1,0)+
If(Label3.Text="Good",1,0)+
If(Label4.Text="Good",1,0)+
If(Label5.Text="Good",1,0)+
If(Label6.Text="Good",1,0)+
If(Label7.Text="Good",1,0)+
If(Label8.Text="Good",1,0)

No of "Not Good" count should Reflect in Textbox or Label

If(Label1.Text="Not Good",1,0)+
If(Label2.Text="Not Good",1,0)+
If(Label3.Text="Not Good",1,0)+
If(Label4.Text="Not Good",1,0)+
If(Label5.Text="Not Good",1,0)+
If(Label6.Text="Not Good",1,0)+
If(Label7.Text="Not Good",1,0)+
If(Label8.Text="Not Good",1,0)

 

Best Regards,

Bof

View solution in original post

2 REPLIES 2
Sundeep_Malik
Community Champion
Community Champion

Hey @ahamedmujahid92 

In the text property of the label do this:

 

Good Label:

 

Sum(If(DataCardValue1.Text="Good",1,0),If(DataCardValue2.Text="Good",1,0).....Rest for other datacards...)

 

For Not Good Label do this:

 

Sum(If(DataCardValue1.Text="Not Good",1,0),If(DataCardValue2.Text="Not Good",1,0).....Rest for other datacards...)

 

v-bofeng-msft
Community Support
Community Support

Hi @ahamedmujahid92 ,

 

Please try:

 

No of "Good" count should Reflect in Textbox or Label

If(Label1.Text="Good",1,0)+
If(Label2.Text="Good",1,0)+
If(Label3.Text="Good",1,0)+
If(Label4.Text="Good",1,0)+
If(Label5.Text="Good",1,0)+
If(Label6.Text="Good",1,0)+
If(Label7.Text="Good",1,0)+
If(Label8.Text="Good",1,0)

No of "Not Good" count should Reflect in Textbox or Label

If(Label1.Text="Not Good",1,0)+
If(Label2.Text="Not Good",1,0)+
If(Label3.Text="Not Good",1,0)+
If(Label4.Text="Not Good",1,0)+
If(Label5.Text="Not Good",1,0)+
If(Label6.Text="Not Good",1,0)+
If(Label7.Text="Not Good",1,0)+
If(Label8.Text="Not Good",1,0)

 

Best Regards,

Bof

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,745)