jspc
asked on
Sorting a Column and Drill Down
Hello,
Can you please help me modify the attached report so it sorts the Quantity field from largest to smallest?
I am also wondering if it is possible to add a 'drill down' to the report on the header record and the drill down would show the child record?
An example of this in the report is:
10000.white.06
10000.white.07
10000.red.01
Header record would be:
10000
Drill down would then show:
10000.white.06
10000.white.07
10000.red.01
I have saved the attached file with data.
The existing drill down feature (To show Customers) can be removed if need be.
Thank you.
SalesByProductByCustomerSummary.rpt
Can you please help me modify the attached report so it sorts the Quantity field from largest to smallest?
I am also wondering if it is possible to add a 'drill down' to the report on the header record and the drill down would show the child record?
An example of this in the report is:
10000.white.06
10000.white.07
10000.red.01
Header record would be:
10000
Drill down would then show:
10000.white.06
10000.white.07
10000.red.01
I have saved the attached file with data.
The existing drill down feature (To show Customers) can be removed if need be.
Thank you.
SalesByProductByCustomerSummary.rpt
ASKER
Try that ..
Are you trying to group the like items in the Group2 together into a higher classification?
There is no easy way to pull the leading number as some have 1000.00, others are 10000 - , and others have other formats.
Need a common format or length of field to be able to split the 1000 from 1000.00 and group on it.
mlmcc
There is no easy way to pull the leading number as some have 1000.00, others are 10000 - , and others have other formats.
Need a common format or length of field to be able to split the 1000 from 1000.00 and group on it.
mlmcc
ASKER
Yes.
You can use a common split of "-" as most databases use this. My example is using the "." but use the "-"
You can use a common split of "-" as most databases use this. My example is using the "." but use the "-"
Look at the data your report is showing. If I use the - there doesn't seem to be any commonality to provide drill down.
I see a 10022 - Tie that seems to be a category with many styles of ties under it. Unfortunately they are listed as 10022.01xxxxx.
You need to create a function that strips the 10022 so they can be grouped by a category number. I thought about using the first 5 but the next category is 1003 - Shirt with styles 1003.01xxxx so for this one it is the first 4.
I then considered using the first N numeric digits stripping them out until you find a non-digit. That works until page 4 where there is 7PHP and ABC.
Are the product codes set in stone or can they be changed?
Can you add a category code to the data?
mlmcc
I see a 10022 - Tie that seems to be a category with many styles of ties under it. Unfortunately they are listed as 10022.01xxxxx.
You need to create a function that strips the 10022 so they can be grouped by a category number. I thought about using the first 5 but the next category is 1003 - Shirt with styles 1003.01xxxx so for this one it is the first 4.
I then considered using the first N numeric digits stripping them out until you find a non-digit. That works until page 4 where there is 7PHP and ABC.
Are the product codes set in stone or can they be changed?
Can you add a category code to the data?
mlmcc
ASKER
That example I have provided is only an example.
In a real database it will be a "-" so it will be all the same, not a combination.
Product Codes can be changed.
Yes, I have the ability to add a "Category" to the data.
In a real database it will be a "-" so it will be all the same, not a combination.
Product Codes can be changed.
Yes, I have the ability to add a "Category" to the data.
If you can add the category then the grouping is easy as we won't have to pull the data apart.
If the format will always be CatCode - details then you could use a formula like this for the category and group on it.
Split({ProductField},'-')[ 1]
Your group 2 would then be the next group and it could be hidden with drilldown allowed. The drill would then expose the details for that category. You can sort groups based on summary fields. If you have a total sales, total quantity for each Category then the category groups could be sorted by it.
mlmcc
If the format will always be CatCode - details then you could use a formula like this for the category and group on it.
Split({ProductField},'-')[
Your group 2 would then be the next group and it could be hidden with drilldown allowed. The drill would then expose the details for that category. You can sort groups based on summary fields. If you have a total sales, total quantity for each Category then the category groups could be sorted by it.
mlmcc
ASKER
I can only add a 'category' to a product. Each Product or stock code has a number of fields EG:
Is the above category what you mean or do mean something else in terms of a category?
- Product Code
- Description
- Barcode
- 'Category'
- Price
- Cost
Is the above category what you mean or do mean something else in terms of a category?
It would be the common piece of the product code you are showing.
If they all will have a - then it would be the part before the dash.
You should be able to use the formula I provided above and call it category to test the idea.
Add a group on it then the products
mlmcc
If they all will have a - then it would be the part before the dash.
You should be able to use the formula I provided above and call it category to test the idea.
Add a group on it then the products
mlmcc
ASKER
Well then no I can't add a 'category' in the database to the product code.
It sounds like its going to be too tricky.
Are you able to modify the report for me and only include my original request of sorting the Qty column from largest to smallest?
Better still, have an option when you run the report that a parameter pops up and you can select whether the Qty column is sorted from largest to smallest or smallest to largest.
It sounds like its going to be too tricky.
Are you able to modify the report for me and only include my original request of sorting the Qty column from largest to smallest?
Better still, have an option when you run the report that a parameter pops up and you can select whether the Qty column is sorted from largest to smallest or smallest to largest.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
I believe you have to add a comment on the attachment or else it fails but you don't get an error
mlmcc