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

Get count after filter

Hi all,

 

I have a gallery with column name status and when I apply filter based on status(Approved/pending/rejected) at same same time . I need a count of status from gallery . How I get count of like how many pending/approved/rejected .

 

Thanks,

Vaishnavi

1 ACCEPTED SOLUTION

Accepted Solutions
Chitrakant27
Resolver II
Resolver II

Hi @Vaishnavi457 ,

 

You can take a simple 3 - label and apply code on text property

 

"Pending-"&CountRows(Filter(Galleryname.AllItems,Status.Value="Pending"))

 "Approved-"&CountRows(Filter(Galleryname.AllItems,Status.Value="approved"))

"Rejected-"&CountRows(Filter(Galleryname.AllItems,Status.Value="rejected"))

 

Thanks,

Chitrakant27

 

 

View solution in original post

2 REPLIES 2
zmansuri
Super User
Super User

I am guessing you are showing this count of the gallery in a label?

Then lebel's text property:

CountIf(Gallery1.AllItems,Status="Approved")

The above code will give you number of approved status in the gallery.

Chitrakant27
Resolver II
Resolver II

Hi @Vaishnavi457 ,

 

You can take a simple 3 - label and apply code on text property

 

"Pending-"&CountRows(Filter(Galleryname.AllItems,Status.Value="Pending"))

 "Approved-"&CountRows(Filter(Galleryname.AllItems,Status.Value="approved"))

"Rejected-"&CountRows(Filter(Galleryname.AllItems,Status.Value="rejected"))

 

Thanks,

Chitrakant27

 

 

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 (4,548)