Crystal Reports按子组的差异排序 [英] Crystal Reports Sort by difference of sub groups

查看:256
本文介绍了Crystal Reports按子组的差异排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种根据子组的差异对组进行排序的方法

I'm looking for a way to sort a group by the difference of it's sub Groups

例如,票证是一个组,周是票证下的一个组,

For example, Ticket is a group, Week is a group under ticket,

机票A:总共100张机票,差额10张机票

Ticket A : Total 100 Tickets, Difference 10 tickets

第1周:55张机票

第2周:45张门票

门票B:总计100张门票,差额30张门票

Ticket B : Total 100 Tickets, Difference 30 tickets

第1周:65张门票

第2周:35张门票

门票C:总计150张票,相差70张票

Ticket C : Total 150 Tickets, Difference 70 tickets

第1周:110张票

第2周:40张票

基本上,我想确定两个组之间的差异,然后按此排序。我可以很简单地创建公式,但是我无法对其进行排序。有什么想法

So basically, I want to determine the difference between the 2 groups, then sort by that. I can create the formula simple enough, but it won't let me sort by it. Any ideas

推荐答案

您可以直接访问数据库吗?例如,如果这是一个SQL数据库,我将创建一个存储过程,为每个组创建计算。然后,当您将存储过程添加到报表中时,您可以轻松地对它们进行排序。

Do you have direct access to the database? For example, if this is a SQL database, I would create a stored procedure that creates the calculations for each group. Then when you add the stored procedure to the report you could easily sort them.

某些功能更容易在db端而不是Crystal上产生。

Some functionality is easier to produce on the db side instead of Crystal.

这篇关于Crystal Reports按子组的差异排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆