Hi,
I'm using CR XI and XI Server with a Teradata database.
ISSUE 1
I just created my first cross tab report using the cross tab wizard.
I need to be able to create custom formulas based upon data in the cross tab output (column summary and row summary and detail intersection data) so I can do other calculations on the data in my cross tab.
From what I understand cross tab output is created during CR's second pass and my cross tab output is currently in the report header so my formulas will need to be placed in a lower section which is fine.
I got this idea after reading the following in a Ken Hamady newsletter: "What I learned this week is that you can fire variables in the conditional formatting formulas of every cell in a cross-tab. These formulas give you access to the values in the cross-tab, using the "CurrentFieldValue" function. That means that you can take the values inside a cross-tab and pass them to formulas later in the report. The example given in the article showed that you could recreate a running total in a cross-tab located in the group header, and display the running total before the details of the group. This is something that isn't normally possible in a report."
I've looked at a bunch of posts out here but I'm having trouble getting the cross tab values represented in a formula.
I've done the following in a Custom Formula:
This function can only be used in field formatting fields.
So I went into the DisplayText are of one of my cross tab output fields and put the following:
QUESTION 1
No errors and I didn't even use CurrentFieldValue but even if I did how am I able to use the value "x" in a custom formula?
ISSUE 2
The reason I'm creating a cross tab is that I'm dealing with dynamic data and I'm doing multiple summaries. Example:
Ultimately I want my output to be in Excel and I haven't had much luck dropping the cross tab output to Excel in a format that I would call useable. So I as thinking if I had a custom formula that contained all the cross tab output and I hid the cross tab I could display my custom formulas on the output (easier to control the output in Excel when working with my own fields).
QUESTION 2
The cross tab is dynamic and the report will be automated so I can't create custom formulas on the fly. How would I handle something like this - or do I have to go back to fiddling with CR's cross tab Excel export?
Thanks in advance.
I'm using CR XI and XI Server with a Teradata database.
ISSUE 1
I just created my first cross tab report using the cross tab wizard.
I need to be able to create custom formulas based upon data in the cross tab output (column summary and row summary and detail intersection data) so I can do other calculations on the data in my cross tab.
From what I understand cross tab output is created during CR's second pass and my cross tab output is currently in the report header so my formulas will need to be placed in a lower section which is fine.
I got this idea after reading the following in a Ken Hamady newsletter: "What I learned this week is that you can fire variables in the conditional formatting formulas of every cell in a cross-tab. These formulas give you access to the values in the cross-tab, using the "CurrentFieldValue" function. That means that you can take the values inside a cross-tab and pass them to formulas later in the report. The example given in the article showed that you could recreate a running total in a cross-tab located in the group header, and display the running total before the details of the group. This is something that isn't normally possible in a report."
I've looked at a bunch of posts out here but I'm having trouble getting the cross tab values represented in a formula.
I've done the following in a Custom Formula:
Code:
NumberVar X;
X := GridRowColumnValue("Class")
This function can only be used in field formatting fields.
So I went into the DisplayText are of one of my cross tab output fields and put the following:
Code:
StringVar x;
x := ToText(GridRowColumnValue("Class"));
x;
QUESTION 1
No errors and I didn't even use CurrentFieldValue but even if I did how am I able to use the value "x" in a custom formula?
ISSUE 2
The reason I'm creating a cross tab is that I'm dealing with dynamic data and I'm doing multiple summaries. Example:
Code:
class1 class2 class3 etc...
US
New York
employee 1 0 1
employee 0 1 0
CA
Los Angeles
employee 1 1 1
employee 0 0 0
etc...
1 = class completed, 0 = class not completed
Ultimately I want my output to be in Excel and I haven't had much luck dropping the cross tab output to Excel in a format that I would call useable. So I as thinking if I had a custom formula that contained all the cross tab output and I hid the cross tab I could display my custom formulas on the output (easier to control the output in Excel when working with my own fields).
QUESTION 2
The cross tab is dynamic and the report will be automated so I can't create custom formulas on the fly. How would I handle something like this - or do I have to go back to fiddling with CR's cross tab Excel export?
Thanks in advance.