I am using Crystal 11.5.8.826
I am creating a "Dead Stock" report that list everything that we are closing out company-wide. The report itself works flawlessly, save for one field. I need to list "Available Locations" that would show which location had it in stock (but not the total available or any details, just list the location number). The location is a character field three character in length with leading blanks, so that what I would consider location 3 is stored as " 3" (blank blank three).
I have a not very easy to maintain solution in the report that dealt with the six locations we had at the time (3, 5, 7, 9, 12, 14) by using 6 Running Totals to determine if the Location was present in the hidden detail rows for each item and 6 formulas to assign the values of 100000, 10000, 1000, 100, 10 & 1 respectively and then another formula to total the values to arrive at a number that I then used a formula to interprete. So for example, if there was dead stock items at location 3, 9 and 12 I would get a total of 100110 (100000+100+10) and the formula would return "3, 9 & 12", based on a series of if-then statements that look like binary, running from 1 to 111111, with the appropriate "then" matching the total of the "if".
Now the location have changed (5 is gone and 51 and 56 have been added, and since we are in growth mode, more are to come quickly). I could rework my formulas to add more values, but I then I would have to start it all over again when we change locations.
In short, what I need is a list of all the unique values in the Location fields from the hidden detail rows for each item that has dead stock (deadst = 1) in one field on the report so that I get a listing that shows, if there is inventory for this flagged item at locations 3, 7, 9 and 51:
Part# Desc Avail_Locations Quantity Inventory_Value
1234 something 3 40 400.00
1234 something 7 10 100.00
1234 something 9 20 200.00
1234 something 51 30 300.00
1234 something 3, 7, 9 & 51 100 1,000.00
My spreadsheet background is clouding my ability to find a database solution....but I know that there has to be an easier may because Starbucks would need one heck of a long formula to do the same thing!
"The problems we face today cannot be solved by the minds that created them."
--Albert Einstein
I am creating a "Dead Stock" report that list everything that we are closing out company-wide. The report itself works flawlessly, save for one field. I need to list "Available Locations" that would show which location had it in stock (but not the total available or any details, just list the location number). The location is a character field three character in length with leading blanks, so that what I would consider location 3 is stored as " 3" (blank blank three).
I have a not very easy to maintain solution in the report that dealt with the six locations we had at the time (3, 5, 7, 9, 12, 14) by using 6 Running Totals to determine if the Location was present in the hidden detail rows for each item and 6 formulas to assign the values of 100000, 10000, 1000, 100, 10 & 1 respectively and then another formula to total the values to arrive at a number that I then used a formula to interprete. So for example, if there was dead stock items at location 3, 9 and 12 I would get a total of 100110 (100000+100+10) and the formula would return "3, 9 & 12", based on a series of if-then statements that look like binary, running from 1 to 111111, with the appropriate "then" matching the total of the "if".
Now the location have changed (5 is gone and 51 and 56 have been added, and since we are in growth mode, more are to come quickly). I could rework my formulas to add more values, but I then I would have to start it all over again when we change locations.
In short, what I need is a list of all the unique values in the Location fields from the hidden detail rows for each item that has dead stock (deadst = 1) in one field on the report so that I get a listing that shows, if there is inventory for this flagged item at locations 3, 7, 9 and 51:
Part# Desc Avail_Locations Quantity Inventory_Value
1234 something 3 40 400.00
1234 something 7 10 100.00
1234 something 9 20 200.00
1234 something 51 30 300.00
1234 something 3, 7, 9 & 51 100 1,000.00
My spreadsheet background is clouding my ability to find a database solution....but I know that there has to be an easier may because Starbucks would need one heck of a long formula to do the same thing!
"The problems we face today cannot be solved by the minds that created them."
--Albert Einstein