We are developing a dashboard. It shows an achievement rate graph.
It shows 2 decimal places (e.g. 99.99%)
And for our client, it’s very important that it gets 100% or not.
Now, QuickSight round up 99.995% to 100%.
It’s really not desired behavior.
Do any one know the way to round down 99.999% to 99.99%?
Or any work around?
Hello there,
First of welcome to the QS community.
Have you tried referring to round function ? Please see -Round - Amazon QuickSight
Hope this helps.
Cheers,
Deep
Thank you. I saw your link.
But it rounds number to closest.
I’m looking for the way to round down always.
Even en 99.999%.
How about this? thanks.
Here there,
OK i see, can you show 3 decimal place ? i assume the dataset is in SPICE .
I am not sure if it make sense in this topic but worth checking -
When you store your dataset in SPICE, you can choose to store your decimal values as fixed
or float
decimal types. Decimal-fixed
data types use the format of decimal (18,4
) that allow 18 digits total and up to 4 digits after the decimal point. Decimal-fixed
data types are a good choice to conduct exact mathematical operations, but QuickSight rounds the value to the nearest ten thousandth place when the value is ingested into SPICE.
Decimal-float
data types provide approximately 16 significant digits of accuracy to a value. The significant digits can be on either side of the decimal point to support numbers with many decimal places and higher numbers at the same time. For example, the Decimal-float
data type supports the number 12345.1234567890
or the number 1234567890.12345
. If you work with very small numbers that are close to 0
, the Decimal-float
data type supports up to 15 digits to the right of the decimal point, for example 0.123451234512345
. The maximum value that this data type supports is 1.8 * 10^308
to minimize the probability of an overflow error with your data set.
Fore more info - please visit - Supported data types and values - Amazon QuickSight
Hope this helps.
Cheers,
Deep
ご質問頂きありがとうございます。
現在の Suzuki 様の課題は、99.999 が 100 と表示される点でしょうか?
もしそうでしたら、数値フィールドの右側のボタンの[形式]から[その他の形式オプション]を選んで頂き、
(参考画像)
[少数位] セクションにて表示される小数点以下の桁数を設定することが可能です。
(参考画像)
例えばこちらを 3 に設定して頂くと、99.999 は 99.999 とそのまま表示されるようになります。
関連するドキュメントはこちらになります。
こちらで期待される回答となっておりますでしょうか?
もし、小数点以下を正確に表示することではなく、希望される位で小数点以下を切り捨てることがご要望でしたらお手数ですがその旨をご返信いただけますと幸いです。
Ririka
Ririkaさんの返答で解決しておりますでしょうか?Solutionとしてマークさせていただきますが、もし解決していないようでしたら、お知らせください。QuickSight Communityにご質問いただき、ありがとうございます。
@mririka 様 @murackey 様
ご回答ありがとうございます。
すみません、依頼を再度内部で確認したところかなり差異がありました
正確にはゲージグラフでの中央に表示される割合を99.999%の時に100%では無く99.99%ととして表示したいという要望になります。
以下データとそれにより表示されるゲージグラフの例です。
よろしくお願いします。
goal,actual
1000000,999999
詳細にご説明いただき、ありがとうございます!
そうですね、ゲージだと比較の細かいフォーマット指定ができないです。KPIだとできるのですが、それでも、今回のデータでは小数点以下2桁を指定してしまうと、100%になってしまう仕様なので、今回のご要望を叶えることはできません。
当内容については、Feature-Requestとしてアーカイブさせていただき、今後の製品機能強化に活用させていただきます。