Hello All,
I’m having a problem with group selection and can’t figure why.
I have a group based on the following formula: Left({Table.PRODUCT_CODE},3)
I have a Parameter Field, {?Product Code}, where users enters the first three characters of a product code, i.e. 101, 102, ABC, etc.
I have the following formula in the Record Selection:
(If {?Product Code} = "101" then {Table.PRODUCT_CODE} startswith ["101"] else
If {?Product Code} = "102" then { Table.PRODUCT_CODE} startswith ["102"] else
If {?Product Code} = "104" then { Table.PRODUCT_CODE} startswith ["104"] else
If {?Product Code} = "ABC" then { Table.PRODUCT_CODE} startswith ["ABC101"] else
{?Product Code} = Left({Product.PRODUCT_CODE},3))
The problem I’m encountering is that if I enter “ABC” - along with other parameter (say, “101”) the report only returns the “ABC” records. If I enter “101”, “102”, “104” the report returns the correct records.
What have I got wrong here?
Thanks in advance for any/all suggestions!
- Tom
I’m having a problem with group selection and can’t figure why.
I have a group based on the following formula: Left({Table.PRODUCT_CODE},3)
I have a Parameter Field, {?Product Code}, where users enters the first three characters of a product code, i.e. 101, 102, ABC, etc.
I have the following formula in the Record Selection:
(If {?Product Code} = "101" then {Table.PRODUCT_CODE} startswith ["101"] else
If {?Product Code} = "102" then { Table.PRODUCT_CODE} startswith ["102"] else
If {?Product Code} = "104" then { Table.PRODUCT_CODE} startswith ["104"] else
If {?Product Code} = "ABC" then { Table.PRODUCT_CODE} startswith ["ABC101"] else
{?Product Code} = Left({Product.PRODUCT_CODE},3))
The problem I’m encountering is that if I enter “ABC” - along with other parameter (say, “101”) the report only returns the “ABC” records. If I enter “101”, “102”, “104” the report returns the correct records.
What have I got wrong here?
Thanks in advance for any/all suggestions!
- Tom