HI,
I'm stumped. I have a somewhat complicated formula,
each record in my database contains these fields:
Ticket#, Network(string), IP (string), DateAdded, DateRemove
1 A-Network 192.168.1.1 01/01/03 11/01/03
2 A-Network 192.168.1.2 01/01/03 05/01/03
3 B-Network 192.168.1.3 01/05/03 10/01/03
and so on....
40 to 50 different networks, containing around 2000 Ip addresses.
This is a Quarterly report, and I have to break it down
to give the numbers for month 1, 2, and 3. (each month in the quarter)
What I need to do is distinct count the Networks if they pass the date calculation below.
@(1st month in Quarter)
if {@DateRemovedChecked} >= {@QuarterStart} and {DeviceList.Date Added } <= {@EndMonth1date} then DistinctCount ({DeviceList.Network})
@(2nd month in Quarter)
if {@DateRemovedChecked} >= {@Beginning2ndMonthDate} and {DeviceList.Date Added } <= {@EndMonth2Date} then DistinctCount ({DeviceList.Network})
@(3rd month in Quarter)
if {@DateRemovedChecked} >= {@Beginning3rdMonthDate} and {DeviceList.Date Added } <= {@QuarterEnd} then DistinctCount ({DeviceList.Network})
These formulas seem to work for when certain quarters and years are choosen. Either they all come up with the same number for each month, or the first month will have the correct number, and the 2nd and 3rd months will be zero.
any help or ideas on how to do this a better way would be greatly appreciated.
Thanks,
Andy
I'm stumped. I have a somewhat complicated formula,
each record in my database contains these fields:
Ticket#, Network(string), IP (string), DateAdded, DateRemove
1 A-Network 192.168.1.1 01/01/03 11/01/03
2 A-Network 192.168.1.2 01/01/03 05/01/03
3 B-Network 192.168.1.3 01/05/03 10/01/03
and so on....
40 to 50 different networks, containing around 2000 Ip addresses.
This is a Quarterly report, and I have to break it down
to give the numbers for month 1, 2, and 3. (each month in the quarter)
What I need to do is distinct count the Networks if they pass the date calculation below.
@(1st month in Quarter)
if {@DateRemovedChecked} >= {@QuarterStart} and {DeviceList.Date Added } <= {@EndMonth1date} then DistinctCount ({DeviceList.Network})
@(2nd month in Quarter)
if {@DateRemovedChecked} >= {@Beginning2ndMonthDate} and {DeviceList.Date Added } <= {@EndMonth2Date} then DistinctCount ({DeviceList.Network})
@(3rd month in Quarter)
if {@DateRemovedChecked} >= {@Beginning3rdMonthDate} and {DeviceList.Date Added } <= {@QuarterEnd} then DistinctCount ({DeviceList.Network})
These formulas seem to work for when certain quarters and years are choosen. Either they all come up with the same number for each month, or the first month will have the correct number, and the 2nd and 3rd months will be zero.
any help or ideas on how to do this a better way would be greatly appreciated.
Thanks,
Andy