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

Use Filter Function for Value > 0

I'm hoping this is just a small syntax error. I'm trying to get a gallery to display records only when the value from a specific column is 1 or higher (basically, when one specific employee has at least one item in a given row/record checked out from the office). Currently the gallery works if I leave the code as simply drawing data from my collection ("OnHand," generated when I hit the "refresh" button), but if I try to filter as "Filter( OnHand, With_x0020_April > 0 )" I get an error that it was expecting a number value, and if I try "Filter( OnHand, With_x0020_April.Value > 0 )" I get a message that "." is invalid. Can anyone suggest an alternate syntax?

2 ACCEPTED SOLUTIONS

Accepted Solutions
EricLott
Level 10

Re: Use Filter Function for Value > 0

Try Value(With_x0020_April) instead of just 'With_x0020_April'

View solution in original post

Super User
Super User

Re: Use Filter Function for Value > 0

@LauradeBoer 

My first guess would be that With_x0020_April is not a number data type.  Perhaps its text or something else.  What happens if you do this>

Filter(OnHand, Value(With_x0020_April) > 0)

 

I know it will throw a delegation warning but do any results show in the gallery?

 

---
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

3 REPLIES 3
EricLott
Level 10

Re: Use Filter Function for Value > 0

Try Value(With_x0020_April) instead of just 'With_x0020_April'

View solution in original post

Super User
Super User

Re: Use Filter Function for Value > 0

@LauradeBoer 

My first guess would be that With_x0020_April is not a number data type.  Perhaps its text or something else.  What happens if you do this>

Filter(OnHand, Value(With_x0020_April) > 0)

 

I know it will throw a delegation warning but do any results show in the gallery?

 

---
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

LauradeBoer
Level: Powered On

Re: Use Filter Function for Value > 0

That's got it! Thank you both!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

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