Link to home
Start Free TrialLog in
Avatar of rgshafer
rgshafer

asked on

Cross-Tab Columns - Define Range

Is it possible to specify a column range in a cross-tab (expert, formula, etc) report.

For Example the data returned from the data base for the field that will be the column can be anything from 1-12 (months of the year) yet I want the columns to start at 1 and run to 12 irregardless of whether the number exists in the query. Also the data for the row should appear in the correct column.

Is this possible?

Thanks,

Richard
Avatar of erpeters
erpeters

If you mean show columns where there is no data...I do not think this is possible...with more info there are workarounds, but complicated
Avatar of rgshafer

ASKER

Yes I am looking for a workaround if it cannot be done straight forwardly....

Report Example:
Type1
         Jan  Feb  Mar  Apr  May  Jun  Jul  Aug  Sep  Oct  Nov  Dec
John    2     3      2     4      1      2     0    0      0      0     0     0
Deb     3     2      4     1      2      1     0    0      0      0     0     0
Rob     4     1      2     3      3      2     0    0      0      0     0     0
Lisa     2     3      2     4      1      2     0    0      0      0     0     0


SQL Columns and Data Example:
Name Month Count SalesType
John      2        2       Type1
John      2        1       Type1
John      1        1       Type1
John      1        1       Type1
Deb       1        3       Type1
Deb       2        1       Type1
Deb       2        1       Type1
Rob       1        2       Type1
Rob       1        1       Type1
Rob       1        1       Type1
Rob       2        2       Type1
Lisa       1        1       Type1
Lisa       1        1       Type1
Lisa       2        1       Type1
Lisa       2        1       Type1
Lisa       2        1       Type1

Etc.....

The Month is derived from a date say 01/05/2003 and 01/06/2003 hence multiple records from a Group By.

Notice beginning in 2004 there will not be data for Feb on yet I wish to display Feb to Dec columns with 0 as the cell value.

Another Hitch the data appears in a Group Section of the report for each SalesType. As such modifying the SQL to dummy the data (Union Statements etc) is impossible since the different types of SalesTypes can increase or decrease.

Does this help any better?

Thank you,

Richard


ASKER CERTIFIED SOLUTION
Avatar of hendrik_ch
hendrik_ch

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial