Hi,
I am using Crystal Reports 7.
I have a report that needs to be grouped on price ranges. However the ranges are not determined until the data is returned to the report. The grouping occurs as follows. First find the lowest price of the record set returned and multiply it by 1.5. This is the first price range. Now find the next price greater than the high price of the first range. This becomes the low price of the second range. Multiply this by 1.5 and this is the high price of the second range. Keep applying this formula until all prices fall within a range.
Example
Low price is 10. So first range is 10 to 15.
Lets say next price greater than 15 is 20. So next range is 20 to 30.
Say the next highest price is 40. So next range is 40 to 60.
I don't think there is any way to do this via just using Crystal Reports designer. I was thinking maybe find the ranges in the main report and pass them to a subreport, and have the subreport run for each range.
Any help would be appreciated.
I am using Crystal Reports 7.
I have a report that needs to be grouped on price ranges. However the ranges are not determined until the data is returned to the report. The grouping occurs as follows. First find the lowest price of the record set returned and multiply it by 1.5. This is the first price range. Now find the next price greater than the high price of the first range. This becomes the low price of the second range. Multiply this by 1.5 and this is the high price of the second range. Keep applying this formula until all prices fall within a range.
Example
Low price is 10. So first range is 10 to 15.
Lets say next price greater than 15 is 20. So next range is 20 to 30.
Say the next highest price is 40. So next range is 40 to 60.
I don't think there is any way to do this via just using Crystal Reports designer. I was thinking maybe find the ranges in the main report and pass them to a subreport, and have the subreport run for each range.
Any help would be appreciated.