elsenorjose
Technical User
I am trying to create an IF formula that will give me column names based on a group of item numbers. Example:
if item in {1,2,3,4,5} then 'Basic'
else if item in {6,7,8,9} then 'Mid-Range'
else if item in {10,11,12} then 'Premium'
else item
However, I have another set of criteria:
if item in {1, 9, 12} then 'Black Label'
Some background: I am doing a project for a clothing company and they have a handful of items that fall into multiple categories, very much like what I describe above. The report we want would create summaries of the groups (Basic, Mid-Range, etc.) using those groups as column labels. Is this possible and secondly, if it is, how would I create the second grouping?
Using CR XI, IBM DB2 database on an AS/400. Thanks.
if item in {1,2,3,4,5} then 'Basic'
else if item in {6,7,8,9} then 'Mid-Range'
else if item in {10,11,12} then 'Premium'
else item
However, I have another set of criteria:
if item in {1, 9, 12} then 'Black Label'
Some background: I am doing a project for a clothing company and they have a handful of items that fall into multiple categories, very much like what I describe above. The report we want would create summaries of the groups (Basic, Mid-Range, etc.) using those groups as column labels. Is this possible and secondly, if it is, how would I create the second grouping?
Using CR XI, IBM DB2 database on an AS/400. Thanks.