cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Masoud9
Level: Powered On

Count function depending on galery item

Hi everyone!

 

My app is linked to a SharePoint list.

I have a gallery which show registration plates (see attached file) and I want to put a label which shows the number of values of a colum that meet these requirements:

1. The registration number is the same that appears in the gallery

2. The value is blank

 

I've tried the folowing:

CountIf(MySharePointList, Registration=ThisItem.Registration && Colum1=Blank())

 

The condition for the 1st requirement does not work. Can someone help me with this?

 

Thank You!

Masoud9

1 ACCEPTED SOLUTION

Accepted Solutions
shailendra74
Level 8

Re: Count function depending on galery item

Hi @Masoud9 

 

Try below 

 

Set(totalCount, CountRows(Filter(MySharePointList, filtercriteria))

 

totalCount gives the count based on the filter criteria.

 

Hope this helps.

 

Thanks.

2 REPLIES 2
shailendra74
Level 8

Re: Count function depending on galery item

Hi @Masoud9 

 

Try below 

 

Set(totalCount, CountRows(Filter(MySharePointList, filtercriteria))

 

totalCount gives the count based on the filter criteria.

 

Hope this helps.

 

Thanks.

Masoud9
Level: Powered On

Re: Count function depending on galery item

Many Thanks! @shailendra74 

Helpful resources

Announcements
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

Users Online
Currently online: 53 members 4,722 guests
Please welcome our newest community members: