This topic contains 2 replies, has 0 voices, and was last updated by anton8359 7 years, 7 months ago.

  • Author
    Posts
  • #8223

    anton8359

    Good afternoon,

    In Netsuite, we created a custom column for estimated cost in opportunities, we don’t utilize items because for every deal cost changes, In a search I can use sum to total up the amount, costs, as well as gross profit, I can’t get a function to do gross margin, if I do est. cost / amount it will total up the margin for each line (like if one line was 10% and another was 12% search would result in 22%) Need to create a function that takes sums of quantities in multiple lines and divides by sum of quantities in multiple lines. Please Help !! LOL
    This is a cached copy. Click here to see the original post.

  • #8224

    Olivier Gagnon NC

    You can use sum() as a function, so you can for example so something like sum({amount})/nullif(sum({quantity}),0) or something like that.

  • #8225

    anton8359

    Olivier Gagnon NC — prob should have thought of that … thank you so much !

You must be logged in to reply to this topic.