Jump to content

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


Nathan Wilcox

This topic is 2769 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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
    )

)

 

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 2769 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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