I am running a report to find out how many unique customers or companies placed orders during the last week. I have done this by using the fields "Order ID" and "Member ID" and formulas called IsCust and IsComp. The formulas are:
IF {VIW_ORDER_DETAIL_REPORT.MEMBER_TYPE} = 1[1=cust 2=comp] THEN totext({VIW_ORDER_DETAIL_REPORT.MEMBERID}) ELSE "". This shows the MemberID based on the member type (customer or company)
The data displays as follows:
|OrderID @IsCust @IsComp|
|88034 99906 |
|88059 70141|
|Total Orders 2 DistinctCount of VIW_ORDER_DETAIL_REPORT.OrderI]|
|Total Customers 2 DistinctCount of @IsCust|
|Total Companies 2 DistinctCount of @IsComp|
As you can see, there was only 1 customer and 1 company, and the distinct count is counting the "" as a unique entry. I tried this formula IF {VIW_ORDER_DETAIL_REPORT.MEMBER_TYPE} = 1[1=cust 2=comp] THEN {VIW_ORDER_DETAIL_REPORT.MEMBERID} so that it simply returned a null, and it was causing the same results. What I need to know is if there is a way I can get these numbers to show correctly. This report will be run on a monthly basis, with a total number of customers/companies for each month as well as each week.
Please let me know if there is a way to make this work, or if you need any additional information.
Thanks! - kibeth
************************************
I am using Crystal Reports XI Professional
I am referencing an Oracle database
I am using Windows XP sp2
IF {VIW_ORDER_DETAIL_REPORT.MEMBER_TYPE} = 1[1=cust 2=comp] THEN totext({VIW_ORDER_DETAIL_REPORT.MEMBERID}) ELSE "". This shows the MemberID based on the member type (customer or company)
The data displays as follows:
|OrderID @IsCust @IsComp|
|88034 99906 |
|88059 70141|
|Total Orders 2 DistinctCount of VIW_ORDER_DETAIL_REPORT.OrderI]|
|Total Customers 2 DistinctCount of @IsCust|
|Total Companies 2 DistinctCount of @IsComp|
As you can see, there was only 1 customer and 1 company, and the distinct count is counting the "" as a unique entry. I tried this formula IF {VIW_ORDER_DETAIL_REPORT.MEMBER_TYPE} = 1[1=cust 2=comp] THEN {VIW_ORDER_DETAIL_REPORT.MEMBERID} so that it simply returned a null, and it was causing the same results. What I need to know is if there is a way I can get these numbers to show correctly. This report will be run on a monthly basis, with a total number of customers/companies for each month as well as each week.
Please let me know if there is a way to make this work, or if you need any additional information.
Thanks! - kibeth
************************************
I am using Crystal Reports XI Professional
I am referencing an Oracle database
I am using Windows XP sp2