Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
前年はわかるのですが、前年同月のSET分析が分かりません。
教えてください。
Sum ({<月={$(=max(月)=({<年={$(=max(年-1))})}>}仕入金額)
としているのですが、どこが間違っているのでしょうか?
Sum ({<月={$(=max(月)),年={$(=max(年)-1)}>}仕入金額)
でどうですか??
SET分析で複数の条件指定するときは
項目A={○○},項目B={△△}みたいに「,」区切りで定義します。
試してみましたが、Expression OK にはなるのですが、年の色が黒のままで「年=」以後の式に下部赤波線が表示されてしまいます。
Sum ({<月={$(=max(月)),年={$(=max(年-1))}>}仕入金額)
としても結果が表示されなく、ハイフンで表示されてしまいました。
//Sum ({<月={$(=max(月)),年={$(=max(年-1))}>}仕入金額)・・・前年当月
//Sum ({<月={$(=max(月))}>}仕入金額)・・・・当月
//Sum ({<年={$(=max(年))}>}仕入金額)・・・・当年
//Sum ({<年={$(=max(年-1))}>}仕入金額)・・・前年
}が足りませんでした。。。
=Sum ({<月={$(=max(月))},年={$(=max(年)-1)}>}仕入金額)
これでOKだと思います。
有難うございました。できました。