【问题标题】:Netsuite saved search subtract one column from anotherNetsuite saved search subtract one column from another
【发布时间】:2022-12-28 00:19:54
【问题描述】:

As far as I know, there's no way to reference a column result in a subsequent column formula, right? If, on a line, I want to subtract one column from another, the formula for the result column has to recreate the formulas from the input columns? I'm trying to create a list of our purchase orders, and show the difference between the purchase order amount and the sum of the billed amounts. This is what I have in results, with the only criteria as 'Type' = 'Purchase Order'.

【问题讨论】:

  • What you are trying to achieve may already be achieved using Amount and Amount Unbilled fields and appropriate formulas. No need to try summing the billing records where vendor bills may be applied to more than one PO.
  • @bknights, I thought that would work, as well, but the "amount paid" and "amount remaining" fields both return zero when type = Purchase Order, and Main Line = Yes. "amount unbilled" returns an incorrect number, and I haven't been able to figure out why it differs from my formulas above.

标签: sql netsuite saved-searches


【解决方案1】:

You are correct, each result (column) in a saved search acts independently. You have a couple choices.

As you suggested, you can recreate the formula(s) in other columns. Be careful about the summary types though, the order of things like SUM(and stuff inside it) really matters. I've found that putting the summary as far outside the formula tends (but isn't guaranteed) to work.

Your other option is using SuiteAnalytics to create a dataset and then in the workbook, you can create calculated values with the columns that exist in the dataset. It's pretty easy once you get a solid dataset.

【讨论】:

    【解决方案2】:

    You can simply use formula numeric field and can use the formula {field1}-{fieldId2}. Thanks

    【讨论】:

      猜你喜欢
      • 2022-12-01
      • 2022-12-28
      • 2020-04-18
      • 1970-01-01
      • 1970-01-01
      • 2022-12-02
      • 2022-12-01
      • 2022-12-02
      • 1970-01-01
      相关资源
      最近更新 更多