Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

前年同月のSET分析を教えてください。

前年はわかるのですが、前年同月のSET分析が分かりません。

教えてください。

Sum ({<月={$(=max(月)=({<年={$(=max(年-1))})}>}仕入金額)

としているのですが、どこが間違っているのでしょうか?

Labels (1)
4 Replies
kogasawara
Partner - Creator
Partner - Creator

Sum ({<月={$(=max(月)),年={$(=max(年)-1)}>}仕入金額)
でどうですか??

SET分析で複数の条件指定するときは

項目A={○○},項目B={△△}みたいに「,」区切りで定義します。

Not applicable
Author

試してみましたが、Expression OK にはなるのですが、年の色が黒のままで「年=」以後の式に下部赤波線が表示されてしまいます。

Sum ({<月={$(=max(月)),年={$(=max(年-1))}>}仕入金額)

としても結果が表示されなく、ハイフンで表示されてしまいました。

//Sum ({<月={$(=max(月)),年={$(=max(年-1))}>}仕入金額)・・・前年当月

//Sum ({<月={$(=max(月))}>}仕入金額)・・・・当月

//Sum ({<年={$(=max(年))}>}仕入金額)・・・・当年

//Sum ({<年={$(=max(年-1))}>}仕入金額)・・・前年

kogasawara
Partner - Creator
Partner - Creator

}が足りませんでした。。。

=Sum ({<月={$(=max(月))},年={$(=max(年)-1)}>}仕入金額)

これでOKだと思います。

Not applicable
Author

有難うございました。できました。