Relative positioning of two cross tabs.
I have two cross tabs. The first one is dynamic as the number of columns change based on user prompts. The second cross tab is fixed one column which is attached as the last column to the first cross tab.
When the columns of first cross tabs change, the second cross tabs column doesnot move across to fit as a last column i.e., there is no relative positioning between the cross tabs..
How do we achieve this? Any help would be greatly appreciated.
Thanks,
Adam
Right click on the section where the two crosstabs placed and go to section expert and check the option "Relative Positions"
Regards,
Raghavendra
Similar Messages
-
Re: Sum for two cross tabs
Hi Gurus,
I created two cross tab reports from two queries query 1 and query 2 .
query 1 is division wise turnover and query 2 is plant wise. I used both cross tabs in single tab only. The requirement is i need to merge, so i removed the header for second cross tab. then the report will look like below
>>>>>>(Months)>>>JAN-11>>>FEB-11>>>MAR-11>>>APR-11>>>MAY-11>>>......DEC-11
Div/pla
DIVISION1>>>>>>>1000>>>>>200>>>>>100>>>>>>500>>>>>>300>>>>>>.......700
DIVISION>>>>>>>>2000>>>>>400>>>>>900>>>>>>500>>>>>>600>>>>>>.......300
PLANT1>>>>>>>>>6000>>>>>340>>>>>140>>>>>>570>>>>>>380>>>>>>.......720
PLANT2>>>>>>>>>4000>>>>>370>>>>>640>>>>>>870>>>>>>980>>>>>>.......820
But i have a requiremnet to show the sum of division and plant together which is as shown below
>>>>>>(Months)>>>JAN-11>>>FEB-11>>>MAR-11>>>APR-11>>>MAY-11>>>......DEC-11
Div/pla
DIVISION1>>>>>>>1000>>>>>200>>>>>100>>>>>>500>>>>>>300>>>>>>.......700
DIVISION>>>>>>>>2000>>>>>400>>>>>900>>>>>>500>>>>>>600>>>>>>.......300
PLANT1>>>>>>>>>6000>>>>>340>>>>>140>>>>>>570>>>>>>380>>>>>>.......720
PLANT2>>>>>>>>>4000>>>>>370>>>>>640>>>>>>870>>>>>>980>>>>>>.......820
>>>>>>>>SUM>>>13000 >>>>>1310>>>>1780>>>2440>>>>>>2260>>>>>.....2540
Since it's two cross tabs i couldn't able to get the sum.
Guide me how can i achieve this in BOXI 3.1
Thanks & Regards,
RanganathHi thanks for your reply ,
I already tried the way sum(CROSS TAB 1 )+SUM(CT 2) but the problem is its taking the whole sum(cross tab1 )
for ex:
DIVISION1>>>>>>>1000>>>>>200>>>>>100>>>>>>500>>>>>>300>>>>>>.......700
DIVISION>>>>>>>>2000>>>>>400>>>>>900>>>>>>500>>>>>>600>>>>>>.......300
sum----
3000>>>>>600>>>>>1000>>>>1000>>>>>>900>>>>>>>>>1000
PLANT1>>>>>>>>>6000>>>>>340>>>>>140>>>>>>570>>>>>>380>>>>>>.......720
PLANT2>>>>>>>>>4000>>>>>370>>>>>640>>>>>>870>>>>>>980>>>>>>.......820
>>>>>>>>SUM>>>17500 >>>>>8210>>>>8280>>>8940>>>>>>8860>>>>>.....9040
here for division whole sum is 7500
so for jan.2011 plants sum is 6000(Plant 1)4000(Plant 2)7500(all months of division) instead of 3000(division 1+divison 2) on jan 2011.
thats is the problem i'm facing.
Hope you understand my problem explanation here.
Regards,
Ranganath -
Hi Guru,
Have a problem and need your expertise. I already tried searching and cannot find a match solution in my problem.
I have two cross Tab groups. First group is the Month and the second group are the days of the month.
Month> |__________JANUARY 2013_____________|_________FEBRUARY 2013__________| <- Group 1
Days> |__1__|___2___|___3___|___4___|__..31_|__1__|__2__|__3___|__4__|__..28___| <- Group 2
Item 1 | 0 | 3 | 1 | 0 | 3 | 0 | 1 | 0 | 1 | 0 |
Item 2 | 1 | 3 | 2 | 0 | 2 | 0 | 2 | 0 | 3 | 0 |
Item 3 | 1 | 3 | 3 | 0 | 1 | 3 | 2 | 2 | 3 | 0 |
May I know the technique for the for-each group for this.
Sorry for my bad English.
Regards,
JimHi Robin,
I think you could achieve that using subreports; in each subreport, you would work on a specific set of data.
In the main report, you would just display the required data from each subrport.
I hope this helps,
Selenia -
Suppressing a prior Year Month Column on Cross Tab Report
I have two cross tab report in the footer that compares orders booked against what was shipped by month. I need to suppress the columns (Month) for the prior year but keep the Totals.
I have a pdf of the reportTry to add a formula as a column in the crosstab instead of a field. Create a formula like this
if year()=year(currentdate)-1 then
year()
else
month()
This works only for two years of data, means you need to have the record selection formula like this
year()>=year(currentdate)-1 and year()=year(currentdate)
Regards,
Raghavendra -
Reading relative position on multiple axis
Hi all,
I need to read the relative position on two axis via the encoders. I have open loop steppers with encoders. I can read the encoder position on one axis easy enough be we need to read the encoder position of two axis simultaniously. I have looked at high speed capture but this only supports one axis. We have the top end motion card 7358. Taking two reads of the encoders a different times is not good enough for our application - any ideas? I guess I could write a DSP program, if this is the answer does anyone know of any examples? I was hoping there would be an easier way to solve this challenge.
TIA
-Martin
Certified LabVIEW ArchitectDear Martin.D
To effectively measure and monitor the position of the encoders, use the DAQmx functions. And use a digital trigger with the source as the encoder channel that starts recording data as soon as the encoder is initialised. Look at the Cont Acq & chart samples Int-Clk-Dig Start VI in the examples or from NI.com examples and use this for your two lines. Set the sample clock for both lines as the same so that both are synchronised. The VI is an adaptation on the example using the two lines. Set your relevant sources and what outputs you desire. Please let me know how you get on with this.
Xiaofengliu, your -70006 error code typically corresponds to an error on the axis input. If you receive this error code when using a Load DAC function, it is
most likely due to an improper 'DAC' input. This error is common when
using the flex_load_dac function in a text based programming language.
The DAC input requires a resource identifier for the DAC to be used.
This identifier is not just a simple number, but rather a hex id number
unique to each axis. The resource IDs for DAC outputs are listed below.
Please see the link I have attached below to guide you through and resolve your error:
http://digital.ni.com/public.nsf/allkb/6484CBEC9C43189486256FDB004CF7F6?OpenDocument
Many thanks for using the NI forums and I look forward to your reply.
Kind regards
David
Applications Engineer
National Instruments UK -
Drill down of manual cross tab reports with Multi variable subreports
I tried to make a subreport by setting the hyperlink on the group sum of a manual crosstab (http://www.tek-tips.com/faqs.cfm?fid=1219) by setting Hyperlink to another report object.
The documentation said I should copy and paste the name of the report object in the sub report over into the field in the primary report. As I don' t really know what a report object is this failed. Further I found some code in a sample report to deal with subreports that have multiple parameters. The code was unbelievable; it couldn't be right. So, how do I link my subreports to my reports by passing two parameters to the subreports that represent the row and column label of a given sum.
Further what are the fields in the hyperlink another report object from for:
Select from: //do they want a query here?
Report title: //The don't let you type in this
Object Name: //This seems elective
Data Context:// No clue on this either
Thanks for any help you can provide
p.s. This forum doesn't seem to use traditional bit codeThanks for the reply. I looked through those samples and other samples. The two cross tab samples I could find were CtossTab and Inventory CrossTab. Neither has a hyperlink to a sub report and I believe those were actual cross tabs, not manual crosstabs. When I scoured the web for an answer, all I could find was what was linked. This is going 20 pages deep on google.
Crystal crosstabs are 98% better than the excel power pivot or pivot table. However, with Excel, you can drill down to the details automatically. With crosstabs you can't. I was hoping to replicate this by making each summary in the manual cross tab a hyperlink to a sub report that filters the details based on the row and column just as excel does. There is no sample for this.
Oh yes, I'm using CR XI -
Cross tab design : x position based on number of columns
Hello everybody,
In my report, I have a group section for the country.
For each country and in the group header, I have 2 cross tab.
They have always the same number of columns (columns is period).
But 2 country could have different number of periods.
I need to have the 2d cross tab just near the 1st (right side) so I want to change x position of the 2d cross tab depending of the number of period.
I have try to use GetNumColumns but it doesn't work (always not supported), this is the same for other grid value function.
I'm not sure to understand why ...
So I have tried to calculate the number of row , using another group (period), but I can't summarize in a header.
I'm a little bit lost and need some new idea...
For information, my reports are based on a simple mysql DB.
Thankshello, i see that no one has responded to your forum post...is this still an issue?
in the Section Expert for the section where the cross-tabs are sitting, there is a Relative Positions checkbox wherein the cross-tabs will stay in a relative x postion to each other.
e.g. if you are in design mode and the cross-tabs are 1/2 inch from each other, when previewed, the 2nd cross-tab will start 1/2 inch after the 1st one stops.
cheers,
jamie -
How to Display two different objects in a single table header in Cross Tab?
i All,
I've a reqiurement for a Cross Tab Report like I need two different objects that should be displayed side-by-side, one object's values after another in a single header. In the picture below I've shown the objects separately in two rows, top header having BSNLNL,MTNLNL,RCOMNL and Header-2 having AIRTIL,RCOMIL. But requirements needs to be showing like this,
BSNLNL
MTNLNL
RCOMNL
AIRTIL
RCOMIL
Actually, the data for the header comes from a single object called Operator. I've show the Operators name ending with NL and after that names ending with IL. So, i've separated the data into two variables using the below formulae.
IL:
=[Billing Operator]
Where
Match([Billing Operator];"*IL")=1
NL:
=[Billing Operator]
Where
Match([Billing Operator];"*NL")=1
Also, the NL data should start first and after the NL data's last value ends, the IL data should begin.
One more thing is that I've to show '0' for null values. So i've used the below formulae on the column data. You can see below that except the "Outgoing ILD Mins in the month from Mobile Network" everything else showing fine. I don't understand why.
=If
Substr([Franchise];3;1)="M"
Then
[Mobile Outgoing Charged Usage Minutes]
Else
0
I tried different approaches but couldn't find a solution. Could you please help me?
I'm using BO WebI 4.1 SP1
Regards,
Naren Vema.Hi Naren,
No need to split Billing Operator object. Create a variable-
V_IL_NL= If Match([Billing Operator];"*IL")=1 Then "IL" ElseIf Match([Billing Operator];"*NL")=1 Then "NL"
1) Put V_IL_NL variable below Billing Operator object header.
2) Sort and create break on this variable.
3) Delete Footer column. it will automatically create when you apply break.
4) Hide V_IL_NL variable from this header.
~Anuj -
Display two different column types in cross tab
I am using Cross Tab template in crystal XI and I have to show two different column types one is of type int and other is of type string. Below is the format of the report
AmountGiven Amount Spent Attended
Mike 5000 3000 Yes
Steve 200 200 No
Is there a way I can do this showing "yes" or "no" in the third column???
Thanks...Hi
If you are trying to show "yes" or "no" for a column value in a cross tab, then yes we can try using a formula for it.
I would suggest you 2 ways that you can try at your end:
1.
a) Create a formula in the cross tab expert and write your condition.
for eg: if Sum({Orders.Order amount}) > 5000 then "yes" else "no"
b) Then select that formula in the summarized fields in cross tab expert and change the summary to MODE.
c) You can see the "yes" and "no" Within the same box.
2.
a) Add a field to the colums in the cross tab expert.
b) A column gets inserted in the cross tab.
c) Right click the field and select format field.
d) Go to Common tab and write a formula for the display string.
e) Write the condition in that formula.
f) You can see a new column with the expected values.
Hope this helps you..
Please revert incase of any queries.
Regards
Pradeep Hulke -
How can I compare two summary field in cross-tab?
<p>Dear expert:</p><p>I have one question for how can I compare two summary field in cross-tab? I have following cross-table:</p><p>Type Sector1 Sector2 Sector3 Total </p><p>Outlook 10 11 9 30 </p><p>Target 5 3 1 9</p><p>I want to compare the summary field(total) relationship percent, I want to get "9/30". Someone told me I must create the DB view or table via SQL, then can implete in Crystal Report. Can I implete it in Crystal Report via fomula or other function?</p><p>Thanks so much for your warm-hearted help!</p><p>Steven</p>
Hello Steven, yes you can compare summary fields, If you are comparing Summary to Target, or vice versa - you can do it within Crystal Reports.
1. In Suppress conditional formula, create 2 Global variables: CurrentOutlook and CurrentTarger and get the current value.
2. In Display String formula for Total show ToText(CurrentTarget/CurrentOUtlook) + "%".
For more difficult cases of compariing fields in cross--tab, you may look into http://www.relasoft.net/KB10001.html.
Best,
Alexander -
Cross tab template Formatting. Two Row Groups cannot be on the same line
Hi
I have a cross tab template(Vetsriselvan favor) where it has Multiple Row groups. In the RTF template I want them to be on the same line but somehow it works only if they are one below the other. In this template Comp is the First Group Row then Acct is 2nd Group Row and Expense is the 3rd Group Row. Period is the Column. I want all the Group rows start from the same line instead one below the other. Is it possible to do it?
Comp Acct Expense Period
<?for-each-group:/BIOFASPRJ/LIST_G_SUMDEPR1PERACCT/ <[?for-each-group@column:G_PERIOD_NAME[./PERIOD_NAME!=''];PERIOD_NAME|mailto:?for-each-group@column:G_PERIOD_NAME[./PERIOD_NAME!=''];PERIOD_NAME]?>
G_SUMDEPR1PERACCT/LIST_G_COMP_CODE/G_COMP_CODE;./COMP_CODE?> F_comp
<?for-each-group:./LIST_G_ACCT/G_ACCT [LIST_G_DESCRIPTION/G_DESCRIPTION/LIST_G_PERIOD_NAME/G_PERIOD_NAME/LIST_G_DEPR1/G_DEPR1];ACCT?> <?variable@incontext:G1;current-group()?>acc
<?for-each-group:./LIST_G_DESCRIPTION/G_DESCRIPTION[LIST_G_PERIOD_NAME/G_PERIOD_NAME/LIST_G_DEPR1/G_DEPR1];DESCRIPTION?><?variable@incontext:G2;current-group()?>accUpload the template here
http://apps2fusion.com/forums/viewforum.php?f=60
or
Send me the template and xml to fusionDOTobjectATgmail.com -
More than one summary column in cross tab reports
Hi,
I have a cross tab report. The summary column is SUM. I want to add another summary column next to SUM which will be AVG(Average) column.
Any ideas?
Please see the attached image.
Thanks,hi Anurag,
my fault...i should have looked closer at your data.
here's the easy way of showing two sets of summaries at the end of a crosstab, without having duplicate columns.
1) copy your existing cross-tab and paste it to the right of your current cross-tab.
2) now go to the cross-tab expert of the new cross-tab and remove the fields from the Column dialogue
3) change the summary to an Average
4) exit the cross-tab expert and go to the Section Expert for the section where both cross-tabs are...ensure that you check Relative Positions
preview the report. now you'll have to move the 2nd cross-tab a bit so that it aligns properly with the first one.
as a sample, see the attached report. extract the contents and change the .txt extension to .rpt.
-jamie -
Shared Var in Cross-Tab Design
Post Author: bkormoski
CA Forum: General
I have a cross-tab design that requires me to used shared var from a subreport. The SV formulas are not in my available fields in cross-tab wizard. What other choices are there?
I am creating a summary financial statement that requires information from multi tables - because they are not directly related I am creating SV's to get the info I need. Any ideas welcome. THANKsPost Author: RichardN
CA Forum: General
I'm having a similar problem. I've created two variables in the main report
PLACE:
WhilePrintingRecords;Shared StringVar VPNum;VPNum
VENDPROD:
WhilePrintingRecords;{@Place}
I can insert VENDPROD into my cross-tab but the field is blank. On the details line, boty PLACE and VENDPROD display the correct (string) values. I've placed the Cross-Tab in both the Report Header and Report Footer sections and the VENDPROD field is always blank in the cross-tab. What am I doing wrong?
Thank you,
RN -
Cross Tab issue , Need a Help
HI Expery
In BO Webi report need to show dynamic columns in Report after transposing rows to columns.
Data in Table is like below:
Col1 Col2 Col3
101 Abc 801
101 Abc 802
101 Abc 803
101 Abc 804
101 Abc 805
102 RNM 2009
102 RNM 2010
102 RNM 2011
103 RYZ 3465
In Report It should be as
Col1 Col2 Col3 Col3 Col3 Col3 Col3
101 Abc 801 802 803 804 805
102 RNM 2009 2010 2011
103 RYZ 3465
We have tried implementing the same using cross tab , but issue is in Cross col3 grows with all values present for all records. Here, if we use cross tab we are getting result as below:
Col1 Col2 Col3 Col3 Col3 Col3 Col3 Col3 Col3 Col3 Col3
101 Abc 801 802 803 804 805 2009 2010 2011 3465
102 RNM 801 802 803 804 805 2009 2010 2011 3465
103 RYZ 801 802 803 804 805 2009 2010 2011 3465Hi Ahmed
You can use the below logic.
col1 & col2 u can keep it as columns in a cross tab. Now keep col3 as row but here you need to do one thing . Click on the formula button for col3 field and then write the following syntax in it.
= col3 IN ([Col1];[col2])
By using this calculation context it will fetch only the data which is related to the first two columns. so the extra data which u were mentioning about will got to the next row.
Regards
Shyam
Edited by: Shyam Rapeti on Jan 25, 2012 3:20 PM -
Exporting Cross Tabs to Excel - Data Only
I have a report with three cross tabs embedded in three report footers (RFa, RFb, RFc). The third cross tab in RFc, is actually in a subreport. When I preview the report and then export to excel in Excel Data Only there is no problem. Howeever, when I export the report (with the same export settings as before) without previewing it first, it truncates the data found in the first and third crosstabs. Anybody have any ideas on what could be causing this? I have played with the settings in the export options and have gotten it to export the first and second crosstabs without previewing but the third crosstab is still a problem.
I thought that Crystal reports would export exactly what is in the report and I do not know why previewing should matter or not?
Thank you for your help!Athalia,
I tried to recreate the issue using the Xtreme sample database with 3 crosstabs in RFa,b,c with hours of the day as columns. First crosstab has rows for Region, second uses City, and third uses Country.
All 3 are summarizing Customer Credit ID and the 3rd has the sum of Last Years Sales and count of Address1.
When I export this I get the correct result whether the report is previewed or not. I am using the exporting options, Maintain Relative Object position, Maintain Column Alignment, and Simplify Page Header
I would suggest;
a) Ensure that the 3 crosstabs are left aligned and that the column widths of all 3 are the same
b) If there are any other sections in the report that are visible try suppressing all but the 3 sections with the crosstabs in them, will it export now?
c) Try recreating the 3rd crosstab adding just 1 summarized field at a time until it fails and then any formatting that you had done until it fails to try and narrow down what is causing the truncation
d) Try creating a similar report using the Xtreme sample database to see if you can recreate the issue and if so then document the steps so that I can recreate it.
Maybe you are looking for
-
File when copied , is having the current timestamp instead of original time
Hello, I am copying a file file-1(x-date) from server-A to Server-B. when the file-1 is copied to server-b, the size and everything remains fine but the timestamp changes to current timestamp.(Y-DATE) my issue : I want to the file when copied to have
-
My office is saying its an unlicensed product and it prompts me to re install. It come up with Microsoft Activation Wizard then when I select to activate software via the internet an error comes up saying: Unspecified Error has occurred. Request ca
-
Itunes not detecting my ipod touch
someone please help me out..hav got d latest version of itunes but still my touch is not getting detected..while installing latest itune software error comes as soon as d installation process begins saying "one more installation process is already ru
-
Where are the left and right action buttons on the touchpad on the HP ENVY 17t Quad TouchSmart
My new HP ENVY 17t Quad TouchSmart laptop has a touchpad, but no left or right action buttons. How do I simulate their action. Apparently a single tap simulates a left click, but how do I get a right click? How do I drag a cell in a spreadsheet (t
-
Oracle 10g database in AIX 6.1.
Hello ALL! Would anyone know what are the parameters or settings that need to be configured in AIX 6.1. before you can install Oracle 10g database? Should you know any helpful and related links, please share. Thanks so much!!!