Crystal报告数据计数 [英] Crystal report counting of data

查看:85
本文介绍了Crystal报告数据计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天专家,



这里我再次询问有关我的问题的一些消息。

i有一个columname shift和checkoutShift在我的桌子上。我的情景是:



在早上6点到下午2点之间转换1次

在下午2点到晚上10点之间转换2次
在晚上10点到早上6点之间转换3次



第一次交易在第一班签入4小时

第二次交易签入第1次换班,12小时



我的第一次交易退房是同一班次,即第1班。在第1班查看我的报告时,我可以看到总检查是2并检查哪个是1.现在,第二次交易在第2班结账时。在第2班查看我的报告,我没看到总数签出。



i使用总计得到我表中的数据计数,下面是我运行总计的代码:

Good day experts,

here i am again asking for some sugestions regarding to my problem.
i Have a columname shift and checkoutShift on my table.here is my scenario:

shift 1 time between 6am to 2pm
shift 2 time between 2pm to 10pm
shift 3 time between 10pm to 6am

First Transaction checked in on 1st shift for 4hrs
Second Transaction checked in on 1st shift again, for 12hrs

my first transaction check out on the same shift which is 1st shift. upon viewing my report on shift 1 ,i can see the total check in which is 2 and check out which is 1. Now, the second transaction checked out on 2nd shift.upon viewing my report on shift 2, i didnt see the total count for checked out.

i used running total to get the count of data in my table, below are my code on my running total:

{EndOfDayReport;1.roomtype}='Premium' and
{EndOfDayReport;1.hours}=12 and
{EndOfDayReport;1.checkOutStat}=1





i不知道我错过了什么类型的代码..

感谢您的帮助专家。



i dont know what type of code here i'm missing..
Thanks for your help experts.

推荐答案

右键点击报告



然后插入 - >摘要



摘要

选择要总结的字段



及以下计算此摘要

选择计数




然后那就是'它。希望这有帮助
Right Click on the report

then Insert->Summary

Under Summary
Choose the Field to summarize

and under calculate this summary
Choose "Count"


then thats' it. Hope this helps


感谢您的快速回复mr.elieser0213 ..但我的问题没有解决。



i'我使用总计来计算总结账额。在我的运行总计中,我有一个公式只计算具体数据,如:





count roomtype

公式:

thank you for your quick response mr.elieser0213..but my problem is not solve.

i'm using running total to count the total check out.in my running total, i have a formula only to count the specific data like:


count roomtype
formula:
{EndOfDayReport;1.roomtype}='Premium' and
{EndOfDayReport;1.hours}=12 and
{EndOfDayReport;1.checkOutStat}=1


这篇关于Crystal报告数据计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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