Hemen Babla Posted February 21, 2014 Posted February 21, 2014 Hi, I am trying to get the sum() of field base on two condition. Attached is my calculation : If ( Invoice Entries::INVPaid=0 and Invoice Entries::Age of record<-30;Sum ( Invoice Entries::Inv Amount );0 ) Please let me know if i am making any mistake.
Fitch Posted February 21, 2014 Posted February 21, 2014 I'm guessing you're defining this calculation in the context of a parent record (Client? Invoice?) that has multiple related Invoice Entries records. You'll need to either define a new calculated field in Invoice Entries: Case( INVPaid = 0 and Age of record < -30; Inv Amount ) // (age less than -30 is that right?) ... and then get the Sum() of this new field, or; ... create a new relationship to Invoice Entries that includes your INVPaid and Age conditions, and base your Sum() on that. Or get FileMaker 12 and use ExecuteSQL. Welcome to FMForums!
Hemen Babla Posted February 26, 2014 Author Posted February 26, 2014 Hi, thank you very much it work for me. sorry was out so couldnt reply you. Also can you help me to intregate Barocode to my database. I have an inventory database where i do all the in and out. my client requirement is that during the time to stock receive he will just scan by the serial number of that product to save in the inventory database. can you help me?
Recommended Posts
This topic is 4191 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 accountSign in
Already have an account? Sign in here.
Sign In Now