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

Need syntax to boolean as a result from number of records in filter

Hi Folks,

 

I am using below formula for my records results:

CountRows(Filter(ProjectDataAccessControl, User().FullName in ProjectDataAccessControl.User))

 

Now i want to put this in If, for that , I want a syntax to be put in front of Filter , So that it gives true when the results in the number of Filter records are more than zero and false when the results in the number of Filter records is equal to 0

What is the appropriate syntax here?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Need syntax to boolean as a result from number of records in filter

@IMathur 

You can use the ISEMPTY function here

 

!IsEmpty(Filter(ProjectDataAccessControl, User().FullName in ProjectDataAccessControl.User))

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Highlighted
Helper IV
Helper IV

Re: Need syntax to boolean as a result from number of records in filter

Thanks @mdevaney , 

Got the required result from :

!IsEmpty(Filter(ProjectDataAccessControl, User().FullName in ProjectDataAccessControl.User))

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Need syntax to boolean as a result from number of records in filter

@IMathur 

You can use the ISEMPTY function here

 

!IsEmpty(Filter(ProjectDataAccessControl, User().FullName in ProjectDataAccessControl.User))

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Highlighted
Helper IV
Helper IV

Re: Need syntax to boolean as a result from number of records in filter

Thanks @mdevaney , 

Got the required result from :

!IsEmpty(Filter(ProjectDataAccessControl, User().FullName in ProjectDataAccessControl.User))

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,755)