Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Grouping multiple fields into one Post Reply Post New Topic
Author Message
Robotacha
Groupie
Groupie
Avatar

Joined: 11 Nov 2009
Location: United Kingdom
Online Status: Offline
Posts: 97
Quote Robotacha Replybullet Topic: Grouping multiple fields into one
    Posted: 12 Feb 2010 at 1:37am
Hello,
 
i have a problem which im strugling with.
 
I need to build a report which shows what price lists customers are on and whether the price list has shown increased sales.
 
Each customer account has 6 pricelist fields.  TL1, TL2, TL3, TL4, TL5, & TL6.
 
A customer can have NO pricelists allocated or ALL 6 pricelists allocated.
 
the Pricelists field value can range from 1 - 999.
 
I am only going to be using 30 different price list ranges. (400 - 430)
 
So,
 
I want to group by these 30 values, then show what customers have these values within there price lists.
 
example:
 
GROUPING
400 = trade price (Deep)
401 = trade price (killer)
402 = retail price (killer)
etc, etc....
 
Trade Price DEEP
3ROBOTAC
4FOWLEY
2DADS
 
 
 
If I have customer code , 3ROBOTAC and this customer has TL1 as 400, and TL2 as 402 and TL3 as 407, I would want the account code 3ROBOTAC to show in group all 3 of these groups within the report.
 
I need to somehow ammalgamate the 6 PriceLists (TL1 to TL6) then group.
 
I tried creating a formula: {customer.TL1} + {customer.TL2} etc etc... then grouped by this formula but it never worked.
 
 
Hope someone understands, and I hope i have explained my self a little. Please help me on this one.. im struggling lol!
 
All help greatly appreciated
 
 
 
michael
 
Regards,

Michael Jones
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Feb 2010 at 11:51am

You would either have to use a stored proc or view to alter your set into rows rather than columns,

or add the table to the report 6 times and join it in a manner that would work
or create subreports.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.