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

Show occurances on selected text value in datasource

Hi guys!

I have a question which i cannot find a solution to by other questions.

In my application I have a list which helps the employees to see if a task is being completed (færdig) or is not completed (ikke færdig) (see attached picture)

Although i have made a countrows function to count how many tasks there is, I would also like make it count how many is labelled completed and not completed below. 

I have searched for any possible solution for days and cannot get anything to do the job.

I have tried Count, Countif, Filter, Search etc.

Hopefully I have made a newbie mistake or you guys can help me.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Hello @BQC

 

if u wanna make a count function for a label in a gallery, you could try this code

CountIf(Gallery7.AllItems,Text(yourlabelname)="færdig")

idk if that's a good solution, but it's working for me 🙂

 

tell me if it's working for you

 

Best regards

Vasii

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hello @BQC

 

if u wanna make a count function for a label in a gallery, you could try this code

CountIf(Gallery7.AllItems,Text(yourlabelname)="færdig")

idk if that's a good solution, but it's working for me 🙂

 

tell me if it's working for you

 

Best regards

Vasii

View solution in original post

Im still fairly new to this.

My datasource is google sheets.

What should i input in (yourlabelname)? Is that the headline from the table?

I have tried that without succes.

If you need any more information please let me now and thank you so much in advance for helping me out Smiley Happy 

Anonymous
Not applicable

Hi again,

 

with the "yourlabelname" i mean the label you wanna count, the default name of a label is like Label1

take a look at the image label.PNG that i uploaded, i mean the name of the label i marked

do you know what i mean? 🙂

 

Best Regards

Vasii

edited: error

It is working now perfectly! 

Thank you so much Vasii.

Helpful resources

Announcements
News & Announcements

Community Blog

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

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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