すべてのサブコンポーネントの信頼性の低さを年間で乗算する方法を見つけようとしています。

年ごとに配列を作成し、「Product」関数を使用して配列内のすべての要素を乗算することを考えていました。 でも、ループの中のループになりそうな気がします。 このタスクを達成するための提案はありますか?
ありがとう。
この公式を使ってみてください
If( Row() == 1,
x = :Useful Life Unreliability Rollup per Subcomponent type
);
If( Lag( :year ) != :year,
x = :Useful Life Unreliability Rollup per Subcomponent type,
x = :Useful Life Unreliability Rollup per Subcomponent type * x
);
x;
@mquyen 、
表 >> 概要プラットフォームまたは分析 >> 表作成プロシージャのみにオプションとして「製品」がある場合、あなたが尋ねている質問は非常に簡単に答えることができたはずです。
一方、私がそれを行う方法は次のとおりです。
まず、表を年ごとに分割し、サブコンポーネントごとにグループ化します。その場合、product は新しい列の数式のオプションとして使用できます。
Names Default To Here( 1 );<BR />dt1 = New Table( "original",<BR />Add Rows( 16 ),<BR />New Column( "Sub-Component",<BR />Character,<BR />"Nominal",<BR />Set Values( {"a1", "a1", "a1", "a2", "a2", "a2", "a3", "a3", "a3", "a4", "a4", "a4", "dc1", "dc1", "dc1", "dc2"} )<BR />),<BR />New Column( "Year", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1] ) ),<BR />New Column( "unreliability", Numeric, "Continuous", Format( "Best", 12 ), Formula( Random Normal() ^ 2 ) )<BR />);<BR />dt2 = dt1 << Split(<BR />Split By( :Year ),<BR />Split( :unreliability ),<BR />Group( :"Sub-Component"n ),<BR />Output Table( "splilt_table.jmp" ),<BR />Sort by Column Property<BR />);<BR />// New formula column: 1*2*3<BR />dt2 << New Formula Column( Operation( Category( "Combine" ), "Product" ), Columns( :"1"n, :"2"n, :"3"n ) );
これを一度実行すると、次回はスクリプトまたはメニューからクリックすることによって、データに対して同じことを実行できます。どちらもかなり簡単なはずです。
うまくいくかどうかお知らせください。