格式化A列中的SSAS表格模型中的列为百分比为百分比
我从Hive数据库中检索了以下度量:
Success_Rate
0.1
1.09
5.00
-0.34
...
此列已经以源为百分比计算出来,当我尝试在SSAS表格中格式化时,如下所示:
输出变得像下面一样:
Success_Rate
10%
109%
500%
-34%
...
而不是:
Success_Rate
0.1%
1.09%
5.00%
-0.34%
...
I have the following metric retrieved from a HIVE database :
Success_Rate
0.1
1.09
5.00
-0.34
...
This column is already calculated in percentage from the source and when I try to format it in the SSAS Tabular as Percentage like below :
The output becomes like below :
Success_Rate
10%
109%
500%
-34%
...
Instead of :
Success_Rate
0.1%
1.09%
5.00%
-0.34%
...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的Hive数据库中,您可以创建另一列,其中乘以100
然后,在表格模型中,您可以将数据格式更新为百分比,您将具有正确的格式。
或者,您可以在表格立方体中创建具有相同逻辑(乘以100)的列并应用格式。
In your hive database, you can either create another column where you multiply by 100
and then in the tabular model you can update the Data Format to Percentage and you will have the correct formatting.
Or, you can create a column with the same logic (multiplying by 100) in the tabular cube and apply the formatting.