简体   繁体   English

微策略-创建一个简单的百分比列

[英]Microstrategy - creating a simple percentage column

I have a metric that shows sum(Widgets). 我有一个显示sum(Widgets)的指标。 I want to find out the number of Widgets that were faulty, so I created another metric with that. 我想找出出现故障的小部件的数量,因此我创建了另一个指标。 I now want to find the % faulty from total, and have created a widget for the % calculation, however it will not show anything other than 0.00% Whether there are values or not. 我现在想从总数中查找错误%,并为%计算创建了一个小部件,但是无论是否有值,它都不会显示除0.00%以外的任何内容。

Definition in Metric Editor: 指标编辑器中的定义:

([Number of Faulty Widgets] / [Number of Widgets]) ([故障小部件数量] / [小部件数量])

I've been all over Microstrategy community and have tried possible solutions/formatting etc. all to no avail. 我到过Microstrategy社区,并尝试了可能的解决方案/格式等,但都无济于事。 I've looked at % column settings in other % metrics in our projects and can't see any difference in settings or the way it is formulated. 我已经在项目中的其他%指标中查看了%列设置,但看不到设置或格式的任何差异。

Can anyone helps me try to figure out why I am only getting 0%? 谁能帮助我找出为什么我只得到0%的结果?

Thanks 谢谢

Andrew 安德鲁

您是否尝试过打开“小计”选项卡上的“允许智能度量”(如果已设置),那么我将尝试使用动态聚合功能。

创建度量标准时,有两个选项卡(在开发人员/桌面中),在第一个选项卡上,输入度量标准的公式,在第二页上,您可以设置要用于汇总的公式(即,如果报告合并了多个记录,您是要它添加度量标准值还是显示最高值),现在智能metrix是一个复选框,仅当度量标准超过1个并更改sql求和值的方式(即sum(Metric1))时才可用* Sum(Metric2)或sum(Metric1 * Metric2),例如,如果您有两行Metric 1 = 2和4,Metric 2 = 3和6,则一行将计算为16,另一行将计算为18。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM