Yellowcake Posted September 19, 2006 Share Posted September 19, 2006 Hi guys... this is my first post here, and im sure this has been asked plenty of times before .. but anyway ... this is my table structure Quotes Jobsheet in the jobsheet layout there is a portal listing all the quotes that relate to that job number. Some are approved, some arnt. What i would like to do is list the related quotes in the portal on the jobsheet, and do a sum total of only the approved quotes. sounds simple enough, but i have hit a mental block on this one. Any help or example that i can pull apart to see how its done would be VERY greatly appreciated. Regards Alex Quote Link to comment Share on other sites More sharing options...
Maarten Witberg Posted September 19, 2006 Share Posted September 19, 2006 Hi. A possible route: make an auto- enter calc (replace existing): case(status="approved";Price) then sum(Quote::Price) should give you your total. Another way would be to create an extra relationship with a filter JobsheetQuotes JobsheetID::JobsheetID AND gStatus::Status The global gStatus would hold the value "approved" or whatever you use in the quotes table to mark an approved quote. and then sum over that relationship. Maarten Quote Link to comment Share on other sites More sharing options...
Yellowcake Posted September 19, 2006 Author Share Posted September 19, 2006 Hey .. Excellent ... i tried the first sugestion which worked perfectly and only after the second attempt! :-) Thank you very much for the quick response Cheers Al Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.