取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use JMP Live to centralize and share reports within groups. Webinar with Q&A April 4, 2pm ET.
选择语言 隐藏翻译栏
查看原发布的话题

使用 JMP 脚本用数据填充列

dfusco923
Level III

在附加的 JMP 数据集中,有一个 Character, Nominal "Cost Set" 列。它尚未填充数据。

 

我有可以用“ETC”填充所有单元格的脚本:

For Each Row(:Cost Set = "ETC")

 

但是,我想要做的是,如果 :Label 列等于“May ACWP”,我想用“ACWP”填充 :Cost Set 列,否则 :Label 列 =“ETC”

 

有人可以帮我编写脚本来做到这一点吗?

 

谢谢!

 

 

这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。

3 个已接受解答

已接受的解答
txnelson
Super User

回复:使用 JMP 脚本用数据填充列

For Each Row(
     If( :Label == "May ACWP",
          "ACWP",
          "ECT"
     );
);

请花时间阅读帮助下拉菜单下的新用户文档 Discovering JMP。

Re: Using JMP Script to Populate a Column with Data

:Cost Set << Set Each Value( If( Contains( (:label column << Get Name ), "ACWP" ), "ACWP", "ETC" ) )

在原帖中查看解决方案

dfusco923
Level III

Re: Using JMP Script to Populate a Column with Data

Hello Jim - Sorry for the delayed response thank you for providing the script for this - Dan F.

在原帖中查看解决方案

4 条回复4
txnelson
Super User

回复:使用 JMP 脚本用数据填充列

For Each Row(
     If( :Label == "May ACWP",
          "ACWP",
          "ECT"
     );
);

请花时间阅读帮助下拉菜单下的新用户文档 Discovering JMP。

这篇帖子最初是用 English (US) 书写的,已做计算机翻译处理。当您回复时,文字也会被翻译成 English (US)。

dfusco923
Level III

Re: Using JMP Script to Populate a Column with Data

Hello Jim - Sorry for the delayed response thank you for providing the script for this - Dan F.

Re: Using JMP Script to Populate a Column with Data

:Cost Set << Set Each Value( If( Contains( (:label column << Get Name ), "ACWP" ), "ACWP", "ETC" ) )
dfusco923
Level III

Re: Using JMP Script to Populate a Column with Data

Hello Mark - Sorry for the delayed response thank you for providing the script for this - Dan F.