両方のオプションは、サンプルデータセット World Indicators を使用して添付のワークブックで示されます。
注意:このオプションは、複数の基準を含むビューでは機能しません。
IF AVG([Population Total]) Then AVG([母集団合計])
END IF AVG([Population Total]) >= 1000
AND AVG([母集団合計]) < 1000000
Then AVG([母集団合計])
終了IF AVG([Population Total]) >= 1000000
AND AVG([母集団合計]) < 1000000000
Then AVG([母集団合計])
終了
注意:小数点以下の桁数の数値をテキスト値に変換する方法は、すべてのデータベースで一貫しているわけではありません。詳細は、「数値形式の調整による数値の丸めが正しくない」を参照してください。また、テキスト (文字列) の操作によってパフォーマンスの問題が発生する可能性があります。
IF AVG([Population Total]) STR(ROUND(AVG([母集団合計]),0))
ELSEIF AVG([母集団合計]) < 1000000
THEN STR(ROUND(AVG([Population Total])/1000,0)) + "K"
ELSEIF AVG([母集団合計]) < 1000000000
THEN STR(ROUND(AVG([Population Total])/1000000,1)) + "M"
ELSE STR(ROUND(AVG([Population Total])/1000000000,1)) + "B"
END
ROUND() 関数は、指定された小数点以下の桁数の値を返します。STR() 関数は、数値をテキスト (文字列) 値に変換します。
この機能を今後の製品リリースに組み込むことに賛成する方は、次のアイデアに投票してください。 スマートな番号の略語
001453692

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.