Crystal 8.5, crosstab date columns
I need to set up a report that will print columns for each year. I am able to do this without problem for calendar year but the client has indicated they wish to run it on fiscal year or calendar year and based on any year-end date. So for the simple example of a fiscal year ending Sep 30 of each year:
They wish to run the report based on a parameter selection and if they select calendar year, no problem. However, if they select the fiscal year option then each column's data should be based on dates for each year starting Oct 1 of one year and ending Sep 30 of the next year eg. Oct 1, 2006 ending Sep 30, 2007 for one column, Oct 1, 2007 ending Sep 30, 2008 for the next and Oct 1, 2008 ending Sep 30, 2009 for the last if there is three year's data in the database.
I have not asked the question because I am afraid of the answer but I am sure they will ask for each of the last 12 months ending "enter a date here" which could be May 31. So then the report would have to pull Jun1 of one year to May 30 of the next year and put everything into columns.
I think a crosstab is best here but I may have to group by category and manually calculate totals based on standard set of years and put the totals in the group footer. However, I don't think I should have to do this if a crosstab can do the work.
I am just not sure how to approach this one so any ideas are appreciated. TIA rasinc
Please re-post if this is still an issue or purchase a case and have a dedicated support
engineer work with your directly
Similar Messages
-
Hello All
I need help with a Crystal Reports 2008 crosstab linked to BW. The problem is as follows:
When reporting data on two Hierarchies within a Cross Tab I get correct result as follows:
_______________Region 1 Region 2 Region 3 Region 4
Article Group 1..... 100...... 2000..... 300....... 400
Article Group 2..... 6000..... 200..... 3000....... 500
When adding a third Hierarchy to the cross tab I lose data for Region 3 and 4.
__________________________Region 1 Region 2
Article Group 1 Department1..... 50..... 1000
................. .. . Department2..... 50..... 1000
Article Group 2 Department3..... 3000..... 100
.................... .. Department4..... 3000..... 100
Please note that Regions, Article Group are grouped by specified order.
This seems like I have hit a data limit on which the Cross Tab can report upon. Can anyone suggest how I could fix this ?
Thanks
Phillip
Edited by: Phillip L on Jan 6, 2011 12:12 PMI have investigated this problem further and seem to have some strange behaviour within Crystal Reports When combining Hierarchy and Key Figures
When Running SQL to display the 3 Hierarchy elements of my report using the below SQL
SELECT NON EMPTY CROSSJOIN([PGORU CC00_ORU_INTERNAL C00].MEMBERS, CROSSJOIN([PMAG Z_PMAG_HIERARCHY].MEMBERS, [NMATERIAL__PBS].[LEVEL01].MEMBERS)) DIMENSION PROPERTIES [NMATERIAL__PBS].[2NMATERIAL__PBS], [PMAG Z_PMAG_HIERARCHY].[2PMAG], [PGORU CC00_ORU_INTERNAL C00].[2PGORU] ON ROWS FROM [NTMIPVIPP/NFR_NTMIPVIPP_SCCKFO_001] SAP VARIABLES [REP_CURR] INCLUDING [0CURRENCY].[EUR], [PRI] INCLUDING [0FISCPER].[PH2009012]
I get a nicely formated report
Region........ Article Group Node ID........ Department Node ID
I_WORL..............CCMAG......................................... 6906
When adding Key Figure Measures using SQL
SELECT {[Measures].[38Q6G91JCCLI0HZVI2KSXRJ57], [Measures].[3AUWLL04PQC65O6FPQABS36AZ], [Measures].[3RWPS8OVOS9JB1MXEZYIIOBL7], [Measures].[3U1FXKNH2607G7THMNO1CZYQZ], [Measures].[4JM5PK6LIQW96A086K6BGVOOB]} ON COLUMNS, NON EMPTY CROSSJOIN([PGORU CC00_ORU_INTERNAL C00].MEMBERS, CROSSJOIN([PMAG Z_PMAG_HIERARCHY].MEMBERS, [NMATERIAL__PBS].[LEVEL01].MEMBERS)) DIMENSION PROPERTIES [NMATERIAL__PBS].[2NMATERIAL__PBS], [PMAG Z_PMAG_HIERARCHY].[2PMAG], [PGORU CC00_ORU_INTERNAL C00].[2PGORU] ON ROWS FROM [NTMIPVIPP/NFR_NTMIPVIPP_SCCKFO_001] SAP VARIABLES [REP_CURR] INCLUDING [0CURRENCY].[EUR], [PRI] INCLUDING [0FISCPER].[PH2009012]
After 300 pages of nicely formatted data the format changes and dat is no longer in allignment with heading.
Region is populated with EURO
Article Group is polutated with Euro
Department Node if populated with Region
Seems like a bug to me. Any ideas or should I just raise an OSS?
Thanks
Phillip -
Using crystal report to extract data from Audit Log
I have a customised form which contains main fields (i.e 20 fields) and when a field is changed, it's being recorded in the audit log.
Would it be possible to use Crystal Report to extract data from the Audit Log? Ideally, i would like the report to show me all the latest field values in a spreadsheet type format (i.e. one field per column)
Has anyone try this and if so, what is involved?An element with both text & a sub-element is a mixed-content element.
For example ElementA is a mixed content element.
<ElementA>
Text
<ElementB></ElementB>
</ElementA>
Extract just the Text from ElementA.
<xsl:template match="ElementA">
<xsl:apply-templates select="text()" />
</xsl:template> -
Hi
I'm having trouble suppressing some crosstab data.
I have a parameter set up and have formated the crosstab to suppress if a key value is different from the parameter entered when the report is refreshed. It doesn't work.
I've tried suppressing the Report Header where the crosstab is as well without luck.
So how do you supress some of the data in a crosstab based on a parameter?
Many thanks
CharlesHi
Thanks, I think that's got me closer to what I need.
However when I add this expression to the whole crosstab I get a 'Not Supported' error message, so it looks like I'll have to add this to each column of my crosstab to hide the items I do not want.
Ok done this, and I now correctly only see the data I want, but I get lots of blank rows where the data is suppressed, I have Suppress Empty Rows checked but it is not working, so how do I hide these extra rows?
Many thanks
Cheers
Charles
Edited by: Charles Davies on Sep 29, 2009 12:53 PM -
How to get Week,Month and Year details from a date column
Hi frenz,
I've a column like tran_date which is a date column..... I need the next week details based on this column and so on...
I need month and year details as well based on this tran_date column.... can any one tell me how...
Thanks in advanceMy example for objects:
create or replace type date_object as object
centure number,
year number,
month number,
day number,
hour number,
minute number,
second number,
daypart number,
week number,
constructor function date_object(p_dt date)
return SELF as result
create or replace type body date_object is
constructor function date_object(p_dt date)
return SELF as result
as
begin
SELF.centure:= trunc(to_char(p_dt,'YYYY')/100);
SELF.year:= to_char(p_dt,'YYYY');
SELF.month:= to_char(p_dt,'MM');
SELF.day:= to_char(p_dt,'DD');
SELF.hour:= to_char(p_dt,'HH24');
SELF.minute:= to_char(p_dt,'MI');
SELF.second:= to_char(p_dt,'SS');
SELF.daypart:= p_dt-trunc(p_dt,'DD');
SELF.week:= to_char(p_dt,'IW');
return;
end;
end;
select date_object(sysdate),
date_object(sysdate).year
from dual;Regards,
Sayan M. -
ADF Unable to filter / sort date column in table
Hi,
I am using JDeveloper 11.1.1.7.
I have a read only table inside a panel collection. One of the columns in the table is a date field. I have filterable and sortable properties set to true for all columns. Filter and sort property works for all columns expect the date column. The filter and sort options is not even shown for the date field (shown below).
<af:column headerText="#{bindings.ASRTCreateRequestVO1.hints.CreationDate.label}"
id="c7" sortable="true" width="100"
filterable="true">
<af:outputText value="#{row.CreationDate}"
id="ot7">
<af:convertDateTime pattern="#{bindings.ASRTCreateRequestVO1.hints.CreationDate.format}"/>
</af:outputText>
</af:column>
Please let me know if I am missing anything here.
Thanks,
AshwinHi Ashwin,
As mentioned by Timo, for me also the filtering is working as usual.
But while browsing through the ADF UI Guide I came across with below note
If you want to use a component other than an inputText component for your filter (for example, an inputDate component), then instead of setting filterVisible to true, you can add the needed component to the filter facet.
To do so:
1. In the Structure window, right-click the column to be filtered and choose Insert inside af:column > JSF Core > Filter facet.
2. From the Component Palette, drag and drop a component into the facet.
3. Set the value of the component to the corresponding attribute within the FilterableQueryDescriptor class created in Step 1(not above step but you can find it in pg:390). Note that the value must take into account the variable used for the row, for example:
#{af:inputDate label="Select Date" id="name" value="row.filterCriteria.date"}.
This is in the section: 12.5.1 How to Add Filtering to a Table(pg:390).
I hope it helps.
Regards,
Peddi. -
Date Column not getting sorted in a table in web Dynpro Java
Hi All,
I am facing an issue while sorting the date column in a table in my web dynpro java application.
When the date is displayed in the sql format in tha table, I am able to sort the date column successfully but when we convert the date field from sql format to util format in our table and then sort it does not work.
Kindly let us know the steps to be followed in this case to sort the date column of a table in Simple Date format as we do not want date in the sql format to be displayed.
Thanks & Regards,
AnuragHi,
You might want to check whether both your browser's language settings are identical. The browser language could also determine the date format.
As a workaround, you could add an extra attribute to your context, and set the calculated property to 'true'.
In your table, add a new column and bind to this new attribute, and hide your original date column
If you sort using the date column that's hidden now, you could use the calculated field to fixed-format your date the way you prefer (by using the SimpleDateFormatter class for instance)
Cheers,
Robin -
Using MODEL clause and COUNT for not numeric data columns....
Hi ,
Is it possible somehow to use the COUNT function to transform a non-numeric data column to a numeric data value (a counter) and be used in a MODEL clause....????
For example , i tried the following in the emp table of SCOTT dataschema with no desired result...
SQL> select deptno , empno , hiredate from emp;
DEPTNO EMPNO HIREDATE
20 7369 18/12/1980
30 7499 20/02/1981
30 7521 22/02/1981
20 7566 02/04/1981
30 7654 28/09/1981
30 7698 01/05/1981
10 7782 09/06/1981
20 7788 18/04/1987
10 7839 17/11/1981
30 7844 08/09/1981
20 7876 21/05/1987
30 7900 03/12/1981
20 7902 03/12/1981
10 7934 23/01/1982
14 rows selected Now , i want to use the MODEL clause in order to 'predict' the number of employees who were going to be hired in the 1990 per deptno...
So , i have constructed the following query which , as expected, does not return the desired results....
SQL> select deptno , month , year , count_
2 from
3 (
4 select deptno , to_number(to_char(hiredate,'mm')) month ,
5 to_number(to_char(hiredate , 'rrrr')) year , count(ename) count_
6 from emp
7 group by deptno , to_number(to_char(hiredate,'mm')) ,
8 to_number(to_char(hiredate , 'rrrr'))
9 )
10 model
11 partition by(deptno)
12 dimension by (month , year)
13 measures (count_ )
14 (
15 count_[1,1990]=count_[1,1982]+count_[11,1982]
16 )
17 /
DEPTNO MONTH YEAR COUNT_
30 5 1981 1
30 12 1981 1
30 2 1981 2
30 9 1981 2
30 1 1990
20 4 1987 1
20 5 1987 1
20 4 1981 1
20 12 1981 1
20 12 1980 1
20 1 1990
10 6 1981 1
10 11 1981 1
10 1 1982 1
10 1 1990 As you see , the measures for the 1990 year is null...because the measure(the count(deptno)) is computed via the group by and not by the MODEL clause...
How should i transform the above query... so as the "count_[1,1982]+count_[11,1982]" will return non-null results per deptno...????
Thanks , a lot
SimonConnected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL>
SQL> SELECT department_id, MONTH, YEAR, count_
2 FROM (SELECT e.department_id
3 ,to_number(to_char(e.hire_date, 'mm')) MONTH
4 ,to_number(to_char(e.hire_date, 'rrrr')) YEAR
5 ,COUNT(e.first_name) count_
6 FROM employees e
7 WHERE e.department_id = 20
8 GROUP BY e.department_id
9 ,to_number(to_char(e.hire_date, 'mm'))
10 ,to_number(to_char(e.hire_date, 'rrrr')));
DEPARTMENT_ID MONTH YEAR COUNT_
20 8 1997 1
20 2 1996 1
SQL> --
SQL> SELECT department_id, MONTH, YEAR, count_
2 FROM (SELECT e.department_id
3 ,to_number(to_char(e.hire_date, 'mm')) MONTH
4 ,to_number(to_char(e.hire_date, 'rrrr')) YEAR
5 ,COUNT(e.first_name) count_
6 FROM employees e
7 WHERE e.department_id = 20
8 GROUP BY e.department_id
9 ,to_number(to_char(e.hire_date, 'mm'))
10 ,to_number(to_char(e.hire_date, 'rrrr')))
11 model
12 PARTITION BY(department_id)
13 dimension BY(MONTH, YEAR)
14 measures(count_)(
15 count_ [1, 1990] = count_ [2, 1996] + count_ [8, 1997]
16 );
DEPARTMENT_ID MONTH YEAR COUNT_
20 8 1997 1
20 2 1996 1
20 1 1990 2
SQL> ---
SQL> SELECT department_id, MONTH, YEAR, count_
2 FROM (SELECT e.department_id
3 ,to_number(to_char(e.hire_date, 'mm')) MONTH
4 ,to_number(to_char(e.hire_date, 'rrrr')) YEAR
5 ,COUNT(e.first_name) count_
6 FROM employees e
7 GROUP BY e.department_id
8 ,to_number(to_char(e.hire_date, 'mm'))
9 ,to_number(to_char(e.hire_date, 'rrrr')))
10 model ignore nav
11 PARTITION BY(department_id)
12 dimension BY(MONTH, YEAR)
13 measures(count_)(
14 count_ [1, 1990] = count_ [2, 1996] + count_ [8, 1997]
15 );
DEPARTMENT_ID MONTH YEAR COUNT_
100 8 1994 2
30 12 1997 1
100 3 1998 1
30 7 1997 1
5 1999 1
30 12 1994 1
30 11 1998 1
30 5 1995 1
100 9 1997 2
100 12 1999 1
30 8 1999 1
1 1990 0
30 1 1990 0
100 1 1990 0
90 9 1989 1
20 8 1997 1
70 6 1994 1
93 rows selected
SQL> -
How to get date prompts from one date column
i have a requirement where i have to filter the data between two date prompts. i have only one date column and the date in the prompts shuld be selected by calendar.
i have seen may approaches to do this and i got one where two dummy date columns should be declared in repository and used to define the date prompts.
but using other methods i could not get the calendar option in prompt.
but is there any other way to get the prompts with calndar selection without defining the dummy columns in repository
thanksyou can do that first select the date column you want to use in dashboard prompt then select another column and in the dashboard prompts then open the fx of the date prompt you first selected copy that and paste it in the second column and in the control section click on calender it will work you can use same date column as two prompts with out creating new column.
-
Crystal Report Using ECC Data has Auth error in Infoview
We've created a Crystal report that successfully accesses ECC data from a function module in our Dev environment when the report is executed from within Crystal Designer. When we try to execute the same report against the same development ECC system from within InfoView we get the following error:
ERROR: The Database Logon Information for this report is either incomplete or incorrect.
The connection information is the same as it is in designer. We are able to successfully run Crystal Reports over BW data within InfoView. Any ideas about what might be wrong?
DougIngo,
The consumers of the report do have ECC access for order and inventory management so licensing should not be an issue.
We were able to resolve the issue. The problem was with our version of SAP GUI on the BO Dev server.
We had to update our u201CServices.dllu201D and our u201CSAPLogonTree.xmlu201D file with an accurate version. Once that was done, the report executed as expected in InfoView using LDAP.
Thanks,
Doug
Edited by: Douglas Eberle on Jun 13, 2011 6:54 PM -
I have downloaded and installed the latest version of numbers on my mac. Everytime I save and then try to reopen that document, I receive a message telling me that I need a new version of numbers. Also, when I try to sort the date column, it sorts out of order. The last version sorted fine.
Welcome to Apple Support Communities
When you install the new iWork version, the old iWork version is kept, so it looks like you are opening your old version.
To fix this, open a Finder window, choose Applications in the sidebar and drag the new Numbers version to the Dock, so you can access to it quickly. Open all documents from this version. I don't recommend you to delete the old Numbers version in case you need it.
Respecting to the second question, you will get better answers in the Numbers for OS X forum -
How to load data into Planning/Essbase from multiple data column
Dear All,
I have a interface file which contains multiple data column as follows.
Year,Department,Account,Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec
FY10,Department1,Account1,1,2,3,4,5,6,7,8,9,10,11,12
FY10,Department2,Account1,1,2,3,4,5,6,7,8,9,10,11,12
FY10,Department3,Account1,1,2,3,4,5,6,7,8,9,10,11,12
I created a data rule to load these interface file.
I want to use ODI to upload this interface. I try to specify the rule name in ODI and run the interface.
But, it came out following errors.
2010-02-22 11:40:25,609 DEBUG [DwgCmdExecutionThread]: Error occured in sending record chunk...Cannot end dataload. Analytic Server Error(1003014): Unknown Member [FY09,032003,910201,99,0,0,0,0,0,0,0,0,0,0,0,0] in Data Load, [1] Records Completed
Any idea to fix the column, I sure the member name is correct as I can load data from data load rule correctly.
ThanksDear John,
I updated the data load rule delimter to "," and found different error message as follows.
'A910201.99','HSP_InputValue','HKDepart','No_WT','032003','NO_Lease','FY09','Actual','Final','Local','0','0','0','0','0','0','0','0','0','0','0','0','Cannot end dataload. Analytic Server Error(1003014): Unknown Member [0] in Data Load, [1] Records Completed'
It seems that the data load rule can recognize the some member except the figures of Jan to Dec..
thanks for your help -
XML Publisher - Dynamic Data Columns Issue
Hi,
I am creating a amortization report where I need to show the amortization schedule for unearned revenue. Customers have signed different years of contract and I need to show the amount as per their remaining contract months. So if there are 2 month remaining in the contract then I should show the data for 2 months only and if there are 10 months then I should display 10 months. If we run the report for both customers then it should display two lines in report. For first customer the data should be only for 2 months and for second row(customer) there should be data for next 10 months. These months should be columns in the report(like excel columns, not rows). I need to display all months in columns instead of rows.
I have acheived that using Dynamic Data Columns as mentioned in the user guide. Everything is working fine except following issues -
1. How to create page level total?_
I have created page total in my template using <?add-page-total:TOTUREV;'UREV'?> and displaying using <?show-page-total:TOTUREV?> but when I run the report in excel format these page total do not display. These columns are static columns not dynamic.
If I run the report in pdf format then the static column total is displayed correctly.
2. When I run the report in excel format then report run fine and it shows all the columns properly but if I run the report in pdf format then the dynamic column are not displayed in their own columns, all the columns are overwriting each other in a single columns itself, its not expanding.
3. How do I get the total for the dynamic columns?_
I need to display the page level total for the dynamic columns also, how do I do that?
4. When I run the report in excel format the 2 decimal places of the numbers are gone(it works fine in pdf output), like 12.50 becomes 12.5 and 14.00 becomes 14. I need to maintain those 2 decimal places. I have tried using <fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?format-number:CVALUE;'999999D99'?></fo:bidi-override> but this does not solve my problem completely. It shows the values correctly in excel but then I am not able to do any calculation on those columns, looks like it converts them to text values.
Any help is really appreicated. Please let me know if you need the xml template and data file.
Regards
HiteshHi Hitesh,
Can you please upload your RTF and XML template file? I will try to spend sometime on this issue.
Cheers
Sachin -
Update External data Column in share point2010 list
Hi all,
i have list and i am using External data column (From BCS).
I am trying to update the external data field value. its updating and showing in view correctly but when i try to edit its showing old value only.
Ex: I have a external data with field values ( test1,test2,test3,... so on)
in the list i have a value test1, i am trying to update with test2..its updating in display and view but when i am trying edit its showing default still test1..Hi,
The following articles for your reference:
SharePoint 2010 BCS Field - Setting the field/column
http://thealbuquerqueleftturn.blogspot.de/2011/12/sharepoint-2010-bcs-field-setting.html?m=1
Programmatically Setting BCS Fields in SharePoint Custom Lists Client-Side through Web Services / SOAP
http://blog.avanade.com/asg-collaboration-services/other/programmatically-setting-bcs-fields-sharepoint-custom-lists-client-side-web-services-soap/
SharePoint 2013 – Update an External Data field using PowerShell
http://veenstra.xyz/2014/06/03/sharepoint-2013-update-an-external-data-field-using-powershell/
Best Regards
Dennis Guo
TechNet Community Support -
How can i change the Format of my DATE column?
I need to change the date format for a whole column. At present i can do MM-DD-YYYY. I need to change this this to DD-MMM-YYYY.
I know about the to_date function, i tried to apply it to change the format of my whole column by doing the following.....
CREATE TABLE "IT220_DATEHOLIDAY"
"DEPARTID" VarChar(2)NOT NULL ENABLE,
"HOLCODE" VARCHAR2(2)NOT NULL ENABLE,
"DEPARDATE" DATE,
to_date('DATE','DD-MMM-YYYY'), <<<change DATE column to DD-MMM-YYYY
CONSTRAINT "DATEHOLIDAY_PK" PRIMARY KEY ("DEPARTID") ENABLE
ORA-00902: invalid datatype <<<<This was the error message i received.
I am aware that the to_date function is supposed to be used to change strings into a certain format. I guess this means you cant do it with columns? Is there anyway i can format the whole column or do i have to do each string of data entered one by one?
Thanks in advance!Hello Jay,
I'm not sure you hit the right forum, as this doesn't seem to be a problem with APEX.
Anyway:
You can't use that function on a table like that, and as you already suggested, the to_date-function expects a string value.
It seems you also have a misunderstanding of the basic datatypes in the database. DATE is such a datatype and is stored an internal format you don't need to care about. Each time your request the value, the database will give you a string representation according to either your locale or you give a certain formatting mask.
The same applies to insert or update operations: you hand in either a variable of type DATE or use a function like to_date to create an "object" of type date.
You may be interested in reading the documentation of the [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/toc.htm]Oracle Database Concepts. The section concerning datatype DATE can be found here:
http://download.oracle.com/docs/cd/E11882_01/server.112/e16508/tablecls.htm#CBBGJHJC
An overview of formatting options can be found here:
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#SQLRF00212
So to answer your question: You would format it as part of your insert operation, taking a string and convert it using to_date.
-Udo
Maybe you are looking for
-
How do I get apps downloaded from the iTunes store? Every time I try to sign on with my user id and password, I get a message stating that my account has never been used to purchase anything from iTunes before, and that I need to review my account. Y
-
My account keeps resetting and my music is deleting itself from my library. Help!
Every time I log into my account it starts everything the way it had at the start of the last thing, I'll open up an application like Firefox and it'll ask if I want to open it like when you have just downloaded it from the internet. All my settings
-
How do I add a new page to my website?
So I've created my home page, and now I want to make a page that it will link to. I can't seem to find info on exactly how to do this. I've created the new page; do I now set site preferences for it? Do I define it as a "New Site?" If so, what do I p
-
How to connect a HP LaserJet Printer P1102w to my Toshiba Laptop
I have just bought a LaserJet P1102w printer, but i cant seem to install it on my Toshiba laptop (or a HP laptop). I have tried the instruction that came with the product, the disc, the HP website, HP help support in Sydney (Who couldnt even install
-
Customers whose latest posting date is older than 2 years
How to find out the Latest posting date for a customer in the report from the list of Posting date available. Sorting option may not be a right Option as i need to create a condition on the formula(Latest posting date(4) -Sy-datum(4) greater than 2 y