0

I am new to Business Objects and more specifically Desktop Intelligence. We are trying to use it as a reporting tool for our scientific data but running into issues when performing calculations to "create" objects and then trying to perform statistical or aggregate functions on them. For example I run a query that pulls the columns subject name, result day, parameter, and result value. In a table it would look like this:

SUBJECT    DAY    PARAM      RV
10001      0      Length     5.32
10001      0      Width      4.68
10002      0      Length     3.98
10002      0      Width      1.64
10001      7      Length     8.89
10001      7      Width      7.30
10002      7      Length     4.17
10002      7      Width      2.19

We then use the equation for Volume: L*W^2*0.52 in the report defined as measure variable. Using a cross tab with days across the top and subjects down the side I display Length Width and Tumor Volume like such:

                     0                           7
SUBJECT     L        W        V         L        W        V
10001       5.32     4.68     60.59     8.89     7.30     246.35
10002       3.98     1.64     5.57      4.17     2.19     10.40
COUNT                           #                           #
MEAN                            #                           #

Within the footers I'd like to display aggregates such as count, standard deviation, percent change from day zero but they are all screwed up. It's not that it's also doubling the n by two either to account for the fact that Length and Width make up Volume. I have no clue and am at a loss. Any advice suggestions or guidance would be welcomed.

Thanks in advance, Jeff

4

1 回答 1

0

我假设您的交叉表在 Slice and Dice 中如下所示:

            ¦ <DAY>(休息)
            ¦ <参数>
  --------------------
  <主题> ¦ <RV>

所以你的桌子应该看起来像:

        0 7        
        长度 宽度 体积 长度 宽度 体积
10001 5.32 4.68 60.59 8.89 7.30 246.35
10002 3.98 1.64 5.57 4.17 2.19 10.40

使用<DAY>'s break footer 具有音量变量。对于您的体积计算,我使用了以下公式:=(<RV> Where (<PARAM>="Length"))*(Power(<RV> Where (<PARAM>="Width") , 2))*0.52

右键单击交叉选项卡边缘并选择Format Crosstab...然后选中选项卡部分中的Show Footer复选框。如果需要,在页脚中添加额外的行。Down Edge DisplayGeneral

=Count(<VOLUME>)然后手动添加计数和平均值的公式=Average(<VOLUME>)

对我来说,决赛桌现在看起来像这样(数值四舍五入为 2dp):

        0 7        
        长度 宽度 体积 长度 宽度 体积
10001 5.32 4.68 60.59 8.89 7.30 246.35
10002 3.98 1.64 5.57 4.17 2.19 10.40
计数 2.00 2.00
平均 33.08 128.37

诀窍是确保计算发生在正确的上下文中(即,相对于表不同部分中的标题变量)。您可以使用和函数添加和删除变量和In上下文。虽然我不需要在这张桌子上使用它们。ForAllForEach

于 2012-09-14T11:03:46.620 回答