Jump to content
Salesforce and other SMB Solutions are coming soon. ×

HELP .. Sum total of only approved records


Yellowcake
 Share

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use