hatemgamil
Programmer
- Mar 18, 2010
- 41
hi all
lets say i have a report just like that:
customer_ID Customer_Name Order_Amount Order_Date
(#Group1 VipCustomer)
1 qwe 3 3/3/2010
2 dw 4 3/1/2010
3 sd 6 5/5/2009
(#Group1 NomralCustomer)
4 xyz r 3/3/2010
5 dee 9 3/1/2009
i have used suppression formula in the details section to hide the data where year(Order_Date)=2009 to show 2010 records only and it works so i have a report like that :
customer_ID Customer_Name Order_Amount Order_Date
(#Group1 VipCustomer)
1 qwe 3 3/3/2010
2 dw 4 3/1/2010
(#Group1 NomralCustomer)
4 xyz r 3/3/2010
then i want to get subtotal of customers for each customer group where year(Order_Date)=2010 ,but i cant do it,i have created a formula like that
if year(Order_Date)=2010
count(Customer_ID,Customer_Type) //customertype the grouping field
but it doesnt work correctly it gives me the total count of all customers in 2009 and 2010
for eg the subttotal for (#Group VipCustomer ) for year(Order_Date)=2010 is 2 but it gives me 3 which means it also count the suppressed record ,,can any one help me in this one urgent
thnx
lets say i have a report just like that:
customer_ID Customer_Name Order_Amount Order_Date
(#Group1 VipCustomer)
1 qwe 3 3/3/2010
2 dw 4 3/1/2010
3 sd 6 5/5/2009
(#Group1 NomralCustomer)
4 xyz r 3/3/2010
5 dee 9 3/1/2009
i have used suppression formula in the details section to hide the data where year(Order_Date)=2009 to show 2010 records only and it works so i have a report like that :
customer_ID Customer_Name Order_Amount Order_Date
(#Group1 VipCustomer)
1 qwe 3 3/3/2010
2 dw 4 3/1/2010
(#Group1 NomralCustomer)
4 xyz r 3/3/2010
then i want to get subtotal of customers for each customer group where year(Order_Date)=2010 ,but i cant do it,i have created a formula like that
if year(Order_Date)=2010
count(Customer_ID,Customer_Type) //customertype the grouping field
but it doesnt work correctly it gives me the total count of all customers in 2009 and 2010
for eg the subttotal for (#Group VipCustomer ) for year(Order_Date)=2010 is 2 but it gives me 3 which means it also count the suppressed record ,,can any one help me in this one urgent
thnx