Netsuite 合计为0时显示空值

Netsuite 合计为0时显示空值,netsuite,case-statement,saved-searches,Netsuite,Case Statement,Saved Searches,我有一个NetSuite搜索,它按自定义字段值显示来自多个位置的库存值。我目前使用的公式列在下面,效果很好。我只需要修改这个公式,以显示空值,根据公式计算,当总数为0时 MAX(当{custitem37}='4'和{inventorylocation.id}='1'或{custitem37}='04'和{inventorylocation.id}='1'然后{locationquantityavailable}else 0 end)+MAX(当{custitem37}='4'和{inventor

我有一个NetSuite搜索,它按自定义字段值显示来自多个位置的库存值。我目前使用的公式列在下面,效果很好。我只需要修改这个公式,以显示空值,根据公式计算,当总数为0时


MAX(当{custitem37}='4'和{inventorylocation.id}='1'或{custitem37}='04'和{inventorylocation.id}='1'然后{locationquantityavailable}else 0 end)+MAX(当{custitem37}='4'和{inventorylocation.id}='6'或{custitem37}='04'和{inventorylocation.id}6'然后{locationquantityavailable}else 0 end)

使用了null-if:MAX(当{custitem37}='OS'和{inventorylocation.id}='1'然后{locationquantityavailable}否则0结束时的情况下的最大值)+null-if(当{custitem37}='OS'和{inventorylocation.id}='6'然后{locationquantityavailable}否则0结束时的情况下的最大值,0)

不幸的是,据我所知,您将不得不将其包装在一个箱子中,并重复所有操作两次<代码>案例(XXXXX)!=0那么(XXXXX)ELSE NULL END你不能用NULLIF(,0)来包装你的公式吗?是的,实际上NULLIF对我有效……我在发布问题后就尝试过了。示例公式:MAX(当{custitem37}='OS'和{inventorylocation.id}='1'然后{locationquantityavailable}else 0结束时的情况)+NULLIF(MAX(当{custitem37}='OS'和{inventorylocation.id}='6'然后{locationquantityavailable}else 0结束时的情况下的情况下的情况下的情况下的情况下的情况下的情况下的情况下的情况下的情况下的情况下的情况下,0)