DS Cross tab dynamic measure
Hi,
Like in Webi can we create a variable in Design studio with calculated measures and this can inserted in cross tab to pull the values dynamically.
I have seen the document that global and local variables are created and used in Text button to display, this works fine for me too.
The same measure can we use to insert in cross tab to pull the values dynamically...like. .Actual Sales is a measure
Jan feb march Total Sales(3months Actual Jan feb March+9 Month forecasted sales data)
Region
Europe 50 60 70 ----
North America 30 52 75 ------
Asia 85 15 65 --------
I would like to know total sales can be calculated using the above logic in Design studio level and will this pull the data when you drop in the cross tab.
Thanks,
Ramesh.
Hi Tammy,
I just want to know the do's and don't in DS, As you said in bex its very easy to pull out.
Thanks,
Ramesh.
Similar Messages
-
Dynamic parameter passing through hyperlink in Cross tab report
Hi,
I have a requirement in which I have to create a hyper link to parent report (measures) the format of parent report looks like
1. Left side Dimensions
2. Report header contains again with dimension
3. Body of the cross tab contains some details , dimensions and measures.
Here My requirement is to create a hyperlink on mesures (body) so that the corresponding left side dimension and dimension value in the header should go as input parameters to child report dynamically. The child report has two prompts . i.e both are dimensions and based on the input data from parent the child report displays the granular data.
Can any one help me how to create a hyperlink to pass dynamic values on columns and not hardcoding values.
Any help is highly aprreciated.
Thanks in Advance,
Suresh Aluri.Hi,
I'm trying to do something very similar. I have a crosstab report with dimensions on the left (month/year) and on the header (ticket category). However, I'm having trouble passing the measure in the intersecting cell to a child report. This measure is created from the fact table and equates to a count of the tickets. However, it's not exactly 'select count(ticketID) from tablename' and I think that is part of my problem.
In the child report (tabular), I'm passing the same month/year and category dimension values. However, I'm not sure how to pass the measures over. What I want is basically a detailed list of the ticket IDs in a tabular form.
So for example, in the parent report, if there are 12 tickets listed under Jan 09 & category A; then I want the child report to list those 12 tickets.
My problem is that I'm getting more than 16 instead of 12 records.
Thanks in advance,
Carter -
Unable to create cross tab report with multiple level dynamic columns
Hi Gurus,
We are trying to develope group above cross tab report with BI Publisher.
i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
Output should look like this:
Country1
Region1 Region2 Region3 --(level1 column)
d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
Row1 10 20 30 70 80 90 40 70 90 --data
Row2 21 24 54 65 23 64 64 76 87
Here regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
Thanks,
MaheshHi kavipriya,
Any update on this.I have set the rtf and xml to ur gmail id.
Thanks,
mahesh -
Dynamically color to each column in Cross-tab report
Hello All,
I am a newbie in Crystal report,from last few weeks, i am working on cross tab crystal report.i have a requirement to show color dynamically for each column.i am adding an attachment how i want it. i tried dynamic coloring using object field formula but it is showing red color to all data.i want red color data when in 2nd cross tab report data is beyond upper or lower limit in first cross tab table. it will be very helpful if somebody will give me any clue on this.... i read so many articles now it seem like impossible for me..:(
i am using visual studio 2010 and sap crystal report version 13.0.0.99 for visual studio 2010.Hello Manish,
I have attached a sample report that does this. You will need to remove the .txt extension from the attached file to open it as an .rpt file.
Please right click on one of the value fields of the first cross tab in the report > Format Field > Common > Suppress if Duplicated conditional formula.
The nested formula is as follows;
numbervar array l;
numbervar array u;
numbervar x:=CurrentColumnIndex;
if GridRowColumnValue ('@limit') = 'lower limit' then
(redim preserve l[x];
l[x]:= tonumber(CurrentFieldValue))
else if GridRowColumnValue ('@limit') = 'upper limit' then
(redim preserve u[x];
u[x]:= tonumber(CurrentFieldValue));
false
So it assigns each lower and upper limit value for each client (in the sample it is country) to an array using the cross tabs column index to index the array and it ends in False as we don't actually want it to suppress if duplicated. This nested formula is just used to generate the arrays of upper and lower values.
In the second cross tab if you again right click on one of the value fields > Format Field > Font > Color you will see the following conditional formula;
numbervar array l;
numbervar array u;
numbervar x;
if not(tonumber(CurrentFieldValue) in l[CurrentColumnIndex] to u[CurrentColumnIndex]) then
crred
else
crblack
So this compaes the current field value to range generated by the 2 arrays and assigns a color based on whether or not it is in the range.
Regards,
Graham -
Dynamic sorting in Cross Tab Report
I have 2 cross tabs in a report with element linking that filters data in 2nd report when I click on values in the first. I'd like a way to be able to sort the results in the 2nd cross tab in ascending or descending order dynamically.
Please see image below (click image for better quality) for a detailed representation of the problem.
Is this possible?Right click on crosstab and go to Crosstab Expert and in the columns click on "group options" button and in the options tab select "Use a formula as sort order" and write the condition like this
if {?Parameter}="Ascending" then
crAscendingOrder
else
crDescendingOrder
Hope this helps!
Raghavendra -
Unable to change column width dynamically in cross tab report.
Hi,
We have developed cross tab layout using template builder v.10.1.3.2.1 in EBS.I am trying to increase column width dynamically and the width is coming xml.
i looked at document and found one command <?split-column-width:name?> for the same.i tried but it is not increasing the size of one column.
Output
column1 column2 column3 .......
Row text1 10 20 30
Row text2 40 50 60
I want to inrease the size of column for row text1 and row text2.
Need help in this.
Thanks,
MaheshIs the field that holds your width value called "name"?
Can you send me the xml and RTF template to [email protected] and I can take a look.
Thanks,
Bipuser -
Date Formatting in Charts and Dynamic column resizing in Cross tabs
Hi All,
I am new to Design Studio, so am in desperate need of your help on the following:
Is there a way we can change the date format in x axis in charts?
For ex: Am getting dates as mm/yyyyy from BW but requirement is to show in yy-Mon
Requirement is to display data in cross tab just below the charts. How can I make the column widths in the cross tab the same as x-axis divisions in the chart? Also, this will be dynamic as depending on filter selection x axis scaling in charts will vary.
In cross tab, can I hide the column header?
Would really appreciate any kind of help from you.
Thanks & Regards
SwastiHI Swasti,
To answer your first question, in Design Studio it's what you see is what you get! so it shows the Data Labels as it is in the BEx output, if you have to modify this you have to change it in the Background.
There might be CSS workarounds, but I am not sure if that will satisfy your requirements.
You can fix the Column width, but it would be constant, aligning that to your X-axis would require a lot of Effort.
You cannot hide the Column header directly, but one workaround would be to use a white BG text component to overlay on the Crosstab.
Regards,
Fazith Ali Z -
Dynamic or cross tab report in sap
Dear Gurus,
I want to develop a report in SAP where colums will be variable like if data increase colume will also be increased.I am giving an example below which clarify my requirements : -
In normal ALV display as follows :-
Material Batch Month Qty
M1 B1 04-2011 10.00
M1 B1 05-2011 15.00
M1 B1 06-2011 8.00
M2 B6 05-2011 18.00
M2 B6 06-2011 30.00
M3 B5 07-2011 35.00
I need this like following :
Material Batch 04-2011 05-2011 06-2011 07-2011
M1 B1 10.00 15.00 8.00 0.00
M2 B6 0.00 18.00 30.00 0.00
M3 B5 0.00 0.00 0.00 35.00
Here if month increase then it will increase like that :
Material Batch 04-2011 05-2011 06-2011 07-2011 08-2011
M1 B1 10.00 15.00 8.00 0.00 1.00
M2 B6 0.00 18.00 30.00 0.00 2.00
M3 B5 0.00 0.00 0.00 35.00 58.00
It can be increased upto n no of entries depends on selection screen.
I have never develop such type of report .Please help me out to develop this report.
Advance Thanks
Nirmal Sharma
Moderator message: please don't just post the same thing again after the previous one was locked by moderators.
Edited by: Thomas Zloch on Aug 12, 2011 2:26 PMplease refer the below thread.. i am sure you will find the solution.... its not difficult at all.
Need Dynamic or Cross tab reports -
Build the Bar chart from Cross Tab which have 3 measures with cell refr.cal
Hello Friends. I want to Build the Bar chart from Cross Tab which have 3 measures with Actual , Plan and Forecast
But Issue here is each cell is defferent like i have to do different calculation for each cell for actual, plan, forecast
like A = Jan act/Budget actual, Where as B = Feb Act/ Jan Budg+Febbdgt_March Budget
So now when I right click to say turn to Chart it is not generating the chart
Please help how to build bar chart since i do not have 1 key figure which i can drag and drop in view structure of chart so how to handle this
Jan, Feb, March, Aprl, May, June
Actual A B C D
Plan N M O P
Forecast
SONIYAHi Soniya,
It will be better if you can get these keyfigures calculated from the BEx with the help of structures in the BEx.
At the report level it will be complex to create these variables and also not sure whether going to work:
But you can try something like this:
A= If (L01 Moths="JAN") then Sum (Actual)/Sum (Bud) Else 0 similarly for other months.
Then you need to create one more variable (measure) which should be plotted on the chart as:
Final Act = If([L01 Month]="JAN") Then A ElseIf([L01 Month]="FEB") Then B ElseIf([L01 Month]="MAR") Then C
Final Plan= If([L01 Month]="JAN") Then N ElseIf([L01 Month]="FEB") Then M ElseIf([L01 Month]="MAR") Then O
similarly you have to create variables for Forecast, then finally you can plot final 3 variables in the graph.
Hope it helps you.
Regards,
Rohit -
Cross tab query dynamically.
Hi,
i want to do crosstab in my query. but the data was not static its dynamic.
CREATE TABLE ABTEST
SEC_ID NUMBER,
MONYEAR VARCHAR2(10 BYTE),
NUM NUMBER
SET DEFINE OFF;
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200802', 13);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200803', 25);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200804', 26);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200805', 13);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200806', 10);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200807', 11);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200808', 5);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200809', 14);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200810', 17);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200811', 12);
Insert into ABTEST
WHERE
(SEC_ID, MONYEAR, NUM)
Values
(91, '200812', 12);
COMMIT;
Currently it looks like below.
SEC_ID MONYEAR NUM
91 200802 13
91 200803 25
91 200804 26
91 200805 13
91 200806 10
91 200807 11
91 200808 5
91 200809 14
91 200810 17
91 200811 12
91 200812 12
I want to display the data like below.
sec_id 200802 ........200812
91 13 12is there any can we do that by sql query or procedure. The dates are not limited its dynamic.
Please help meout.
Thanks & Regards,
Venkat.Hi,
The number of columns has to be hard-coded.
If you don't know the number of columns until run-time, then you have to use dynamic SQL where, at run-time, you figure out how many columns are needed and write that many columns.
See the script below for one way of doing that in SQL*Plus.
How to Pivot a Table with a Dynamic Number of Columns
This works in any version of Oracle
The "SELECT ... PIVOT" feature introduced in Oracle 11
is much better for producing XML output.
Say you want to make a cross-tab output of
the scott.emp table.
Each row will represent a department.
There will be a separate column for each job.
Each cell will contain the number of employees in
a specific department having a specific job.
The exact same solution must work with any number
of departments and columns.
(Within reason: there's no guarantee this will work if you
want 2000 columns.)
Case 0 "Basic Pivot" shows how you might hard-code three
job types, which is exactly what you DON'T want to do.
Case 1 "Dynamic Pivot" shows how get the right results
dynamically, using SQL*Plus.
(This can be easily adapted to PL/SQL or other tools.)
PROMPT ========== 0. Basic Pivot ==========
SELECT deptno
, COUNT (CASE WHEN job = 'ANALYST' THEN 1 END) AS analyst_cnt
, COUNT (CASE WHEN job = 'CLERK' THEN 1 END) AS clerk_cnt
, COUNT (CASE WHEN job = 'MANAGER' THEN 1 END) AS manager_cnt
FROM scott.emp
WHERE job IN ('ANALYST', 'CLERK', 'MANAGER')
GROUP BY deptno
ORDER BY deptno
PROMPT ========== 1. Dynamic Pivot ==========
-- ***** Start of dynamic_pivot.sql *****
-- Suppress SQL*Plus features that interfere with raw output
SET FEEDBACK OFF
SET PAGESIZE 0
SPOOL p:\sql\cookbook\dynamic_pivot_subscript.sql
SELECT DISTINCT
', COUNT (CASE WHEN job = '''
|| job
|| ''' ' AS txt1
, 'THEN 1 END) AS '
|| job
|| '_CNT' AS txt2
FROM scott.emp
ORDER BY txt1;
SPOOL OFF
-- Restore SQL*Plus features suppressed earlier
SET FEEDBACK ON
SET PAGESIZE 50
SPOOL p:\sql\cookbook\dynamic_pivot.lst
SELECT deptno
@@dynamic_pivot_subscript
FROM scott.emp
GROUP BY deptno
ORDER BY deptno
SPOOL OFF
-- ***** End of dynamic_pivot.sql *****
EXPLANATION:
The basic pivot assumes you know the number of distinct jobs,
and the name of each one. If you do, then writing a pivot query
is simply a matter of writing the correct number of ", COUNT ... AS ..."\
lines, with the name entered in two places on each one. That is easily
done by a preliminary query, which uses SPOOL to write a sub-script
(called dynamic_pivot_subscript.sql in this example).
The main script invokes this sub-script at the proper point.
In practice, .SQL scripts usually contain one or more complete
statements, but there's nothing that says they have to.
This one contains just a fragment from the middle of a SELECT statement.
Before creating the sub-script, turn off SQL*Plus features that are
designed to help humans read the output (such as headings and
feedback messages like "7 rows selected.", since we do not want these
to appear in the sub-script.
Turn these features on again before running the main query.
*/ -
How to produce dynamic cross-tab query result on this data ?
Hi gurus,
I have sales (simplified) sales data as below :
create table sales_summ (area_code varchar2(3), sales_amt number, product varchar2(10) ) ;
insert into sales_summ values ('A01', 100, 'P01');
insert into sales_summ values ('A02', 200, 'P01');
insert into sales_summ values ('B01', 300, 'P02');
insert into sales_summ values ('A01', 400, 'P02');
insert into sales_summ values ('A02', 500, 'P01');
insert into sales_summ values ('A03', 600, 'P01');
insert into sales_summ values ('A01', 700, 'P02');
insert into sales_summ values ('A02', 800, 'P02');
insert into sales_summ values ('A03', 900, 'P01');
And I want to produce a cross-tab sales summary like below :
Product A01 A02 A03 B01
P01 100 700 1500 0
P02 1100 800 0 300
How is the query ?
Thank you for your help,
xtantoSearch this forum for "pivot". Plenty of examples.
Regards,
Rob. -
BI Publisher Pivot Table or Cross Tab
Hai All,
I have a doubt in developing a Matrix report in XML. I have developed a matrix report in RDF and the output is coming fine in RDF. I have generated the XML file which looks like this. I need to develop the report which displays employee details followed by the allowance which are dynamic.
- <XXHRPRF>
- <LIST_G_SUMRESULT_VALUE>
- <G_SUMRESULT_VALUE>
- <LIST_G_EMPLOYEE_NUMBER>
- <G_EMPLOYEE_NUMBER>
<EMPLOYEE_NUMBER>100026</EMPLOYEE_NUMBER>
<PERSON_ID>80</PERSON_ID>
<NATIONALITY>USA</NATIONALITY>
<NATIONAL_IDENTIFIER />
<UNIFIED_ID />
<FULL_NAME>Thomas H Mathew</FULL_NAME>
<ORGANIZATION_NAME>Corporate Affairs</ORGANIZATION_NAME>
<PENSION_FUND_ID />
<CS_SNO>1</CS_SNO>
<CF_PENSION_CONTRIBUTION>3637.5</CF_PENSION_CONTRIBUTION>
<CP_PENSION_COMP_CONTR>10912.5</CP_PENSION_COMP_CONTR>
<CP_TOTAL_SALARY>72750</CP_TOTAL_SALARY>
<CF_TOTAL_CONTRIBUTION>14550</CF_TOTAL_CONTRIBUTION>
- <LIST_G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>1</TAG>
<ELEMENT_NAME>Basic Salary</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>39650</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>2</TAG>
<ELEMENT_NAME>Housing Allowance</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>25000</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>3</TAG>
<ELEMENT_NAME>Child allowance</ELEMENT_NAME>
<LIST_G_PERSON_ID />
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>4</TAG>
<ELEMENT_NAME>Social allowance</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>700</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>5</TAG>
<ELEMENT_NAME>Excess Allowance</ELEMENT_NAME>
<LIST_G_PERSON_ID />
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>6</TAG>
<ELEMENT_NAME>Additional</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>7400</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
</LIST_G_ELEMENT_NAME>
</G_EMPLOYEE_NUMBER>
- <G_EMPLOYEE_NUMBER>
<EMPLOYEE_NUMBER>100030</EMPLOYEE_NUMBER>
<PERSON_ID>82</PERSON_ID>
<NATIONALITY>Canada</NATIONALITY>
<NATIONAL_IDENTIFIER />
<UNIFIED_ID />
<FULL_NAME>Sara Wilson</FULL_NAME>
<ORGANIZATION_NAME>Human Resources</ORGANIZATION_NAME>
<PENSION_FUND_ID />
<CS_SNO>2</CS_SNO>
<CF_PENSION_CONTRIBUTION>1203.75</CF_PENSION_CONTRIBUTION>
<CP_PENSION_COMP_CONTR>3611.25</CP_PENSION_COMP_CONTR>
<CP_TOTAL_SALARY>316575</CP_TOTAL_SALARY>
<CF_TOTAL_CONTRIBUTION>4815</CF_TOTAL_CONTRIBUTION>
- <LIST_G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>1</TAG>
<ELEMENT_NAME>Basic Salary</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>19600</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>2</TAG>
<ELEMENT_NAME>Housing Allowance</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>22500</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>3</TAG>
<ELEMENT_NAME>Child allowance</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>600</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>4</TAG>
<ELEMENT_NAME>Social allowance</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>800</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>5</TAG>
<ELEMENT_NAME>Excess Allowance</ELEMENT_NAME>
<LIST_G_PERSON_ID />
</G_ELEMENT_NAME>
- <G_ELEMENT_NAME>
<TAG>6</TAG>
<ELEMENT_NAME>Additional</ELEMENT_NAME>
- <LIST_G_PERSON_ID>
- <G_PERSON_ID>
<RESULT_VALUE>3075</RESULT_VALUE>
</G_PERSON_ID>
</LIST_G_PERSON_ID>
</G_ELEMENT_NAME>
</LIST_G_ELEMENT_NAME>
</LIST_G_EMPLOYEE_NUMBER>
</G_SUMRESULT_VALUE>
</LIST_G_SUMRESULT_VALUE>
<CF_PERIOD>MAR-2009</CF_PERIOD>
- <XXHRPRF>
I need to develop a cross tab format in RTF using template builder. Can we get this in matrix report using the standard wizard given in template builder or else it should be done manual. If it can be done through wizard can u please explain the process.
And one more think what is the latest version of template builder available. In few cases its given as pivot table and in few its given as cross tab. I confused by that.
This seems to be basic doubt, but please guide me.
Regardsi,
I am developing cross tab report with group in BI Publisher(i.e matrix with group above report in report builder).
My req.is
Country1
region1 region2 region3 --- (level1 column)
d1 d2 d3 d1 d2 d3 d1 d2 d3 --(level2 column)
Row1 10 15 18 24 38 40 36 35 78 --data
Row2 -- -- -- --- --- -- - -- -- --
regions(level1 columns) and d1,d2,d3(level2 columns) are data depenent on XML data.
d1,d2 d3 may change in number based on data.Also we have page break on country.
We could able to achieve in report builder but in Bi Publisher we are unable to achieve the same.
Wizard in BI Publisher gives only one level of measure(region) only.
Currently we are using BI Publisher template builder version 10.1.3.2.1
Need help in this regard ASAP.
Thanks in advance. -
Issue in developing cross tab report with wizard in 10.1.3.2.1
Hi Gurus,
We are trying to develope group above cross tab report with wizard in BI Publisher 10.1.3.2.1 .
i am unable to achieve multiple level columns dynamically.Using cross tab wizard i can achieve single level measure column ,but not the second level column.
Output should look like this:
Country1
Region1 Region2 Region3 --(level1 column)
d1 d2 d3 d1 d2 d3 d1 d2 d3 -- (level2 column)
Row1 10 20 30 70 80 90 40 70 90 --data
Row2 21 24 54 65 23 64 64 76 87 --data
Here Regions and d1 d2 d3 may vary based on xml data.Also we have page break on country.
Haven't get any solution till now.
Also unable to achieve under line and overline on data for total row.
Need help urgently in this issue.
Thanks,
Mahesh
Edited by: user13450806 on Jan 7, 2011 12:43 AMHi Gurus,
I am still waiting for some one to help me in this issue.
It is very urgent for me to solve this. Did not get any help yet.
--Mahesh -
Count Function Specific with Cross Tab Name for Multiple Cross Tabs
Hello Friends I have cross Tab1 and Cross Tab2 based on 2 query data providers. I need to feed calculate the Count of Items in Cross Tab1 and DISPLAY In cross Tab2
Dimension name is ITEM ID
So if there are 21 items in Cross TAB1 then in Cross TAB 2
I want to display "Number of Item" = 21
so do this i Created a count variable
=Count([Item ID]) In Report
which give me 21 in cross tab1 but when I drag that to cross tab2 it give me count of Item in Cross Tab2 = 87 which is wrong since i want 21
so How do I fix this Count in Cross Tab 2
Please help with code to say Count([Item ID]) In Report from cross tab1
thanks
SoniyaHi,
Have you tried for the solution given in the previous thread by converting it to the dimension or detail?
What result did you get?
If you use "Report" operator/keyword then the formula will give you result for whole report. So if you have sections in the report then you can replace it with Section keyword.
Also measure are dynamic and gives result according to the dimesion you associate with them. so you have to convert it to STRING dimension or detail. before using it in the next block.
Regards,
Rohit -
Suppressing levels in cross tab.
Hello All,
I have a project requirenment for one of the client and currently using CR 2008 for creating dynamic reports based on a finance database for profitabilty Analysis. I have been using lot of Web-Elements functionality in my crystal application and its going good to an extent, the only issue i have been experiencing is the dynamic change of the cross tab data based on prompts.
Its a 4 level application where in users are prompted to select a specific level outta the 4 levels, they can select either few or all. Now, the issue is, in my cross tab i have mentioned all the 4 levels in my row field and the data is displayed according to the users selection through prompts, it works fine. But however if user does not select level 3 or 4 or any one of them then the specific cross tab row is displayed empty. I have tried selecting the option suppress empty rows under customize tab but that doesnt seem to work.
I want only those levels to be displayed which are selected by users and suppress the rest, the empty rows in cross tab looks kinda odd to see. I am unable to figure out the formula string for the same.
Any help will be appreciated. Thank youHi
Cross tab is nothing but a tabular representation of data.
It displays zero values only when there is no data for the combination of corresponding row and column.
We can not suppress this however we can display some string like "No data for this" or something else as per requirement.
For this, do the below:
- Right click on the summary value field on the cross tab -> Format Field.
- Under Common Tab, click on X-2 for Display string. This would open the formula editor.
- Put the below formula there:
if IsNull(summary database field) then "No data for here"
else "" & currentfieldvalue;
You can change the display string as per requirement.
Hope this helps!!
Regards
Sourashree
Maybe you are looking for
-
Hi. Why it doesn't work in the SQL Query of Crystal? EXEC ('USE ZZZ_'+{?Base}) SELECT........................ {?Base} is a string variable and its value is correct Thanks
-
I was enjoying my Mac for without crashes for a while. But recently, my Safari would just quit suddenly or unexpectedly. All the tabs and windows will be closed. Should I open safari, the tabs opened on the last window will still be there though. Any
-
Hi all, We have a problem printing cyrillic (bulgarian) characters. An output type is created when we save an invoice and a spool is generated. If we see this spool (print preview) in SAP the characters are displayed properly (maybe you need to flag
-
V570 - Clean Install Problems and Some Solutions
And where is this new bios? I ran into the same problem all these guys mentioned with Windows 7 Ultimate installing on the EFI partition. The wireless adapter simply does not start. I only see the bios version 36 uploaded on August 17 which does no
-
Issue Configuring Workspace in SAP HANA Studio
i want to connect my local SAP HANA Studio and Sap HANA Client to HANA server on CloudShare. However, I cannot find the repository access path in the preferences to configure the HANA regi file. I have installed both hana studio 73 win 64 bit versi