星星
定期贡献者

Level 2 - Sprint 3 INV 01 - POST AND OFFSET

你好

1)我试图对帖子有所了解并抵消以下2个行项目:

a)确认的PO交货=偏移(PO提交,最终运输时间周,0)

b)确认的PO送货测试= POST(PO提交,最终运输时间周)

并感谢它的解释。

2)如果在上述测试中,则为确认的PO交付,如果我切换到最终运输时间周,则不会将其推向第6周(第二图)。为什么会这样?

star_2-1589980792349.png

star_0-1589980980420.png

Thanks.

1个接受的解决方案

接受的解决方案
Smithevan18
贡献者

你好@星星,,,,

帖子和偏移是非常相似的功能,但是,它们将为您带来不同的结果。偏移将为您提供所选行项目X期间数量或过去的时期数量。例如,在您的行项目确认的PO交付中,第6周正在回顾1个时期(最终运输时间周= -1),并导致您的价值为1,因为在第5周确认的PO交付中有1个值。

,另一方面,将推动价值e from your selected line item x number of periods in the future or in the past. For example, in your module, the 1 value in week 5 in your Confirmed PO Delivery line is being pushed 2 periods into the future because that is value in your second argument in your function (Final Shipping Time Weeks = 2). This function also allows you to sum values if they point to the same period. For example, if you also had a 1 in the Confirmed PO Delivery line item for week 6 it would be pushed forward 1 week into your week 7 and combine with your 1 value from week 5 to give you a value of 2 in week 7. Offset will not let you combine values in the same way.

在原始帖子中查看解决方案

10REPLIES10
Smithevan18
贡献者

嗨,明星,

您能否在“最终运输时间周”订单上包含屏幕快照吗?看来您将其与屏幕截图中的“运输时间周”订单项进行了比较,该截图为1个值,但是您的最终订单项可能具有其他价值,这就是您在公式中包含的内容。

星星
定期贡献者

@smithevan18

请参阅下面的详细信息:

a)确认的PO交付=偏移(PO提交,最终运输时间周,0)

b)确认的PO送货测试= POST(PO提交,最终运输时间周)

使用上述公式,结果如图1所示。正在尝试了解为什么确认的PO交付在第6周而不是7中,或者应该在第6周中。本质上,正在尝试了解偏移和邮政的差异。

如果更改公式以偏移(PO提交,最终运输时间周-1,0) - >图2

star_0-1589991334399.png

星星_0-1589992297705.png

Smithevan18
贡献者

你好@星星,,,,

帖子和偏移是非常相似的功能,但是,它们将为您带来不同的结果。偏移将为您提供所选行项目X期间数量或过去的时期数量。例如,在您的行项目确认的PO交付中,第6周正在回顾1个时期(最终运输时间周= -1),并导致您的价值为1,因为在第5周确认的PO交付中有1个值。

,另一方面,将推动价值e from your selected line item x number of periods in the future or in the past. For example, in your module, the 1 value in week 5 in your Confirmed PO Delivery line is being pushed 2 periods into the future because that is value in your second argument in your function (Final Shipping Time Weeks = 2). This function also allows you to sum values if they point to the same period. For example, if you also had a 1 in the Confirmed PO Delivery line item for week 6 it would be pushed forward 1 week into your week 7 and combine with your 1 value from week 5 to give you a value of 2 in week 7. Offset will not let you combine values in the same way.

星星
定期贡献者

@smithevan18

非常感谢您的详细说明。我终于明白了:grinning_face:and managed to recreate a sample for the benefit of those who need further understanding.

star_0-1590025682991.png

star_1-1590025929224.png

在Anapedia中,该图显示了2盒橙色。我本来以为-1(jun)应该装箱,因为给出的示例是3,000,但我可能错了。

star_2-1590026255346.png

米斯巴
主持人

@星星

除了偏移的语法差异之外,要采用3个参数,帖子仅占2个参数,主要区别是邮政函数使您可以在一个单元格中添加数字,而偏移却无法做到这一点。

星星
定期贡献者
米斯巴
主持人

@星星确切地。你在目标

rakesh_24_7
偶尔的贡献者

你好,

我正在尝试“如果提交> 0的PO提交”公式,然后发布(PO已提交,运送时间周),否则为0”?但是,已确认的PO交付的Week 3值不会改变。你能帮我吗?

问候

rakesh_24_7
偶尔的贡献者

你好@smithevan18

我试图弄清以下公式中是否有错误的PO交付。我面临一个问题,在应用给定公式后,所需的值不会在已确认的PO送货订单项目中填充。

“如果提交PO = 1,则发布(PO提交,运送时间周)else 0”