简体   繁体   English

NetSuite 保存搜索公式以查找两个自定义列的差异

[英]NetSuite saved search formula to find the difference of two custom columns

I'm trying to make a saved search to find out which assemblies can be built by determining if all the components are in stock.我正在尝试进行保存的搜索,通过确定所有组件是否有库存来找出可以构建哪些组件。 So I currently have this in one column CASE WHEN {memberitem.quantityavailable} > 1 THEN 1 ELSE 0 END in conjuntion with a sum summary type.所以我目前在一个列 CASE WHEN {memberitem.quantityavailable} > 1 THEN 1 ELSE 0 END 中与总和摘要类型结合使用。 I also have a column with "Member Item" selected and a count summary type.我还有一列选择了“成员项目”和一个计数汇总类型。 How do I make a third column that calculates the difference between these two?如何制作第三列来计算这两者之间的差异? (What would I use for the column names essentially) Is this possible? (我基本上会用什么来表示列名)这可能吗? Thanks!谢谢!

You should be able to do this:你应该能够做到这一点:

SUM( [first column] ) - COUNT( [second column] )

and set the Summary Type to MIN (with this approach the actual aggregation is taking place within your formula, but you still have to select a summary type for the result to display.)并将汇总类型设置为 MIN(使用这种方法,实际聚合发生在您的公式中,但您仍然必须选择汇总类型以显示结果。)

You haven't provided a formula for the second column, so I can only guess what the actual formula you will need is.您尚未为第二列提供公式,因此我只能猜测您需要的实际公式是什么。 If you have just selected a field you would have to convert that to a formula for the purpose of this column.如果您刚刚选择了一个字段,则必须将其转换为用于此列的公式。 The end result would be something like:最终结果将是这样的:

SUM(CASE WHEN {memberitem.quantityavailable} > 1 THEN 1 ELSE 0 END) - COUNT({memberitem})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 NetSuite保存的搜索公式 - NetSuite Saved Search Formula Netsuite:保存的搜索公式:显示具有最早自定义日期的不同行 - Netsuite: Saved Search Formula : Show Distinct Line with Earliest Custom Date NetSuite 使用 CAST 和自定义字段保存搜索公式时出错 - Error on NetSuite Saved Search Formula Using CAST and a Custom Field 使用自定义公式字段,当日期差大于30天且小于32天时,Netsuite将搜索保存到显示记录 - Netsuite Saved Search to Display Records when the date difference is greater than the 30 days and lesser than 32 days using custom formula field Netsuite-带天数计算公式的保存搜索 - Netsuite - Saved Search with Days Calculation Formula NetSuite Saved Search使用带有HTML的公式(数字)进行格式化 - NetSuite Saved Search using formula (numeric) with html for formatting Netsuite - 为过去一小时内创建的日期编写保存的搜索公式 - Netsuite - Writing a Saved Search Formula for Date Created within last hour NetSuite保存的搜索语言 - NetSuite Saved Search Language Netsuite:保存的搜索功能非常类似于Excel中的“文本到列” - Netsuite: Saved Search Function much like “Text To Columns” in Excel NetSuite 保存的搜索以查找汇总的丢失包装记录 - NetSuite Saved Search to find aggregate Missing Pack Records
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM