Salesforce レポートで前年比(YoY)や前四半期比(QoQ)を計算するためのカスタム集計項目の作成手順を紹介します。商談オブジェクトを使用し、数式を用いてデータを比較します。
次の手順では商談オブジェクトを使用します。ただし、この原理はすべての Salesforce レポートで使用できます。
1.[新規カスタム集計項目を追加] をクリックします。
2.[列の名前] を入力し、[形式] を [パーセント] として選択します。
3.数式の計算を [特定行/列のグルーピングレベル...] で実行するようにします。
4.必要に応じて次の数式を入力します。
Q1 (This Year) over Q1 (Prior Year) (Q1 (今年度) 対 Q1 (前年度)):
AMOUNT:SUM/PREVGROUPVAL(AMOUNT:SUM, CLOSE_DATE,4)
Year on Year Change % (前年比 %):
( AMOUNT:SUM - PREVGROUPVAL(AMOUNT:SUM, CLOSE_DATE)) / PREVGROUPVAL(AMOUNT:SUM, CLOSE_DATE)
Quarter-over-Quarter ( QoQ ) Change % (前四半期比 (QoQ) %):
( AMOUNT:SUM - PREVGROUPVAL(AMOUNT:SUM, CLOSE_DATE)) / PREVGROUPVAL(AMOUNT:SUM, CLOSE_DATE,4)
7.[名前を付けて保存] をクリックします。
8.目的のレポート名と保存場所を入力します。
9.[レポートを保存して実行] をクリックします。
注意: 数式がゼロで除算されると、#Error! が必ず返されます。数式でこのエラーが発生した場合、分数の分母が「0」を返しています。
000387764

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.