Hi, I have a problem
I am creating a report based on several tables. I have two parameters with which The user selects the month and year, and it is supposed to calculate how many people came in each day for that month. What I am looking for is a formula for X (Y, Z and E are variations of X) that will do the count of people who came in each day. I also need a column that displays each day of the month as a number (1 -31) to be entered. And calculate the totals per row, and the total per column.
the structure is below.
-------------------------------------------------
Day A B C D Total
1 X Y Z E [ X + Y + Z]
2
3
4
5
.
.
.
31
Total [sum of X] Grand Total[Sum Of above]
______________________________________________
X = count of people
I am currently using the following formula
(A.date) = @Date
//@Date
Date(tonumber({?Year}),tonumber({?Month}), {sc_days.Day})
where Month is selected by the user from a combobox
and Year is entered by the user into a textbox
and sc_days is a column in a table with the numbers 1 - 31.
I had managed to get it to show the count for the days there were people but I somehow changed it and can't get it to add up. I get the following results for my test results
@date Count
15/11/2000 1
11/11/2000 1
15/11/2000 1
Which I need to become
...
10/11/2000 0
11/11/2000 1
12/11/2000 0
13/11/2000 0
14/11/2000 0
15/11/2000 2
...
I am using Crystal Reports for VB.Net and a MySQL database. Can someone help me please! I need to get this done by this Friday, and I'm at my wits end!
I am creating a report based on several tables. I have two parameters with which The user selects the month and year, and it is supposed to calculate how many people came in each day for that month. What I am looking for is a formula for X (Y, Z and E are variations of X) that will do the count of people who came in each day. I also need a column that displays each day of the month as a number (1 -31) to be entered. And calculate the totals per row, and the total per column.
the structure is below.
-------------------------------------------------
Day A B C D Total
1 X Y Z E [ X + Y + Z]
2
3
4
5
.
.
.
31
Total [sum of X] Grand Total[Sum Of above]
______________________________________________
X = count of people
I am currently using the following formula
(A.date) = @Date
//@Date
Date(tonumber({?Year}),tonumber({?Month}), {sc_days.Day})
where Month is selected by the user from a combobox
and Year is entered by the user into a textbox
and sc_days is a column in a table with the numbers 1 - 31.
I had managed to get it to show the count for the days there were people but I somehow changed it and can't get it to add up. I get the following results for my test results
@date Count
15/11/2000 1
11/11/2000 1
15/11/2000 1
Which I need to become
...
10/11/2000 0
11/11/2000 1
12/11/2000 0
13/11/2000 0
14/11/2000 0
15/11/2000 2
...
I am using Crystal Reports for VB.Net and a MySQL database. Can someone help me please! I need to get this done by this Friday, and I'm at my wits end!