简体   繁体   English

在WebFocus中,如何设置总行中的平均单元格?

[英]In WebFocus, how to set average cell in total row?

I am trying to create a report using WebFocus. 我正在尝试使用WebFocus创建报告。 This report has several rows and columns for different departments and their info. 此报告有不同行和列的不同部门及其信息。 And at the bottom, there is one 'Total' row, which shows the summary for each columns. 在底部,有一个“总计”行,显示每一列的摘要。

Now my customers wants in the 'Total' row, one cell needs to show the average value of the column which it belongs to, which all the other cells keep the summary function. 现在我的客户希望在“总计”行中,一个单元格需要显示其所属列的平均值,所有其他单元格都保留汇总功能。

I have no idea how to implement the change in WebFocus App Studio. 我不知道如何在WebFocus App Studio中实施更改。 Can anyone please guide me? 谁能指导我? Thanks in advance! 提前致谢!

One of the simple way i can think of is, UNION OF TWO TABLES . 我能想到的一种简单方法是, 两张桌子的联合 You can do it with MORE keyword in WebFocus. 您可以使用WebFocus中的MORE关键字来实现。

With 'MORE' you can join 2 tables, 1 is your normal table and 2nd table is having customized columns For eg. 使用“更多”,您可以连接2个表,其中1个是常规表,第二个表具有自定义列。 first cell contains total addition of column cells, second column contains average or any other summary function. 第一个单元格包含列单元格的总和,第二个列包含平均值或任何其他汇总函数。
i dont have working WebFocus right now, i will upload demo code soon. 我现在没有工作的WebFocus,我将很快上传演示代码。

thanks. 谢谢。

You can use: ON TABLE SUMMARIZE AS 'TOTAL' 您可以使用: ON TABLE SUMMARIZE AS 'TOTAL'

This will summarize all values that are not computed and all computed fields will be wrapped and computed at the end, just like an average. 这将汇总所有未计算的值,并且所有计算字段都将像平均值一样在最后进行包装和计算。

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

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