Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HELP: Where can I add this missing line into my calculation?

Featured Replies

Hi Guys,

I've been trawling google and many forums for the last couple of days after numerous failed attempts, I'm now relying on the expertise of all of you. I currently have the following calculation:

If     ( 
    IsEmpty ( Invoices::Search ) ; Invoices::Product Category Filter Popover = All Products | Popover::Category ; 
    PatternCount     ( 
                List ( 
                    All Products | Popover::Item ; 
                    All Products | Popover::Supplier ; 
                    All Products | Popover::Internal ID ; 
                    All Products | Popover::Resale Price 
                    ) ; 
                Invoices::Search 
                ) > 0 
    and Invoices::Product Category Filter Popover = All Products | Popover::Category
    )

set up as a portal filter and it performs perfectly to what I needed when I was only testing with a few products in Inventory. I now have 36000+ records and would really like to only show items with a value of more than 0.

I found a suitable calculation (subbed in my own field) on filemaker:

If (All Products | Popover::Stock < 1; 0; 1)

But cannot find the right area to add to my above calculation.

Can anyone help???

Thanks

Nathan

I would say this should work :-

If (All Products | Popover::Stock < 1; 0;

If     ( 
    IsEmpty ( Invoices::Search ) ; Invoices::Product Category Filter Popover = All Products | Popover::Category ; 
    PatternCount     ( 
                List ( 
                    All Products | Popover::Item ; 
                    All Products | Popover::Supplier ; 
                    All Products | Popover::Internal ID ; 
                    All Products | Popover::Resale Price 
                    ) ; 
                Invoices::Search 
                ) > 0 
    and Invoices::Product Category Filter Popover = All Products | Popover::Category
    )

)

 

  • Author
11 minutes ago, rwoods said:

I would say this should work :-

If (All Products | Popover::Stock < 1; 0;

If     ( 
    IsEmpty ( Invoices::Search ) ; Invoices::Product Category Filter Popover = All Products | Popover::Category ; 
    PatternCount     ( 
                List ( 
                    All Products | Popover::Item ; 
                    All Products | Popover::Supplier ; 
                    All Products | Popover::Internal ID ; 
                    All Products | Popover::Resale Price 
                    ) ; 
                Invoices::Search 
                ) > 0 
    and Invoices::Product Category Filter Popover = All Products | Popover::Category
    )

)

 

Thank You So Much. It works Perfect! I now understand what was wrong.

No problem, please do 'Like' any posts that you find helpful on the forum ;-)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.