I the following crosstab report in Cognos 10:
I would like to do two things:
1) change the date format to MM/YY/DD, and
2) write the column headers vertically.
I go to the properties of the column headers, change the writing direction, change the date format, and the report always looks like the above image. I don't understand why Cognos is ignoring the changes I make. Can anyone help?
It appears that Cognos does not play well with non-IE browsers. I tried the report using an IE extension in Chrome and it works. I still can't get the date format of the column headers to change though.
Related
Once I create table in Excel Online
I get some side effect which is change of date display to decimal value:
To reverse this effect manually I just have to change current date format to anything else, then go back to the first one. Nothing really changes that way but date display gets back to normal.
The thing is I want to avoid this situation.
Any idea how to deal with this phenomena? Is it some bug or maybe it can be dealt with some office settings?
I was not able to replicate your problem with office365.
Setting the whole column to a specific date format before generating the table keep the formatting to the generated table.
Set specific date format:
When I export my rdl file to excel the date/time shows up as ######. I researched it and it said to make the columns wider. I got it to work but im on the edge of the page. When I export to pdf everything is messed up because of the width. Is there another way to stop the excel spreadsheet data from showing up as #### other than widening the columns?
"How come other text fields are able to go to the next line but the date/time cant in excel?"
Try converting the datetime to string:
=CStr(Format(Fields!Target_Date.Value,"dd-MM-yyyy hh:mm:ss"))
Make sure the format of the textbox is set to 'General', or the Format property is blank.
This will allow the date and time to wrap in the textbox. The downside is excel now thinks this date is a string, which if there is to be no further manipulation of this, should not cause an issue.
I have produced a cross tab report in Crystal reports 2011 based on a SQL database.
Here is a screen shot
Now by default the cross tab report does not seem to give the summarised data any headers, so that my report shows 4 totals in each cell, but does not identify what each total is. I have used a text box in an attempt to place some headers in the report as follows -
However, this does not solve the issue as the text box only appears in the first column, and not in subsequent columns, as the first picture shows.
Is there a way to add headers to summarised data in cross tab reports?
Got it - there is an option on Right Clicking the summarised date, to include Labels, as per the following screenshot -
I have SSRS 2008 R2 and am working on reports for the UK.
My report has a Date/Time data type parameter. When user opens the report the default date format is MM/DD/YYYY, but I would like to have DD/MM/YYYY format (same if user pick date from Calender drop-down date selection).
I have changed the Language settings on the reports to UK and it formats the dates within the dataset, not the parameter. I have also tried using a cdate expression but that does not work either.
One work around is just changing it to nvarchar in my SQL code however, I have a few scripts that use a > #eomdate so the nvarchar will not work in that case.
Any ideas?
Please see this post on the MSDN forums. The calendar drop down and the date format of the parameter's text box are dependent on the user's Language settings in their browser, not on the report.
If you want to force users to have the same displayed dates, you'll have to use a text field formatted as you want and then use CDate() in your code to turn that varchar into a date for performing time comparisons.
This is what I did to resolve the issue in the SQL Code to get it to work in SSRS as a hack.
declare #eomdate varchar(50)
set #eomdate = '31/01/2013'
select * from policiesEOM p
where p.eomdate >= convert(datetime, #eomdate, 105)
Then I changed the datatype to Text and it works perfectly.
The ssrs date type use the browser language in Google Chrome, Mozilla Firefox, Opera and Safari. In Edge too. IE use the windows regional date format.
If you don't want to use date drop box, you can use a text parameter and convert the value to date with ssrs built in convertion function.
I'm trying to export a SQL Server 2008 R2 Reporting Services report to Excel. The report has a column of dates. The date is stored as a datetime in the SQL server.
The language of the report is set to =User!Language, the format of the date-cell is d.
When exporting/rendering the report to PDF, everything is displayed in the locale of the request made by the browser (Accept-Language).
When rendering to Excel however, the format suddenly changes, for example, to General ([$-10409]M.T.JJJJ) (German Excel, locale of the OS set to de-AT, browser-locale is en-US).
This means that the Excel displays dates in a completely wrong format - the sequence of day, month and year is hardcoded and only the separator comes from the current locale. This makes sharing reports between different OS languages almost impossible since a report generated from a d-m-yyyy country will still display as day-month-year in a country with different date formatting (and vice versa). So any person expecting a m/d/yyyy formatted date will get d/m/yyyy.
This is especially dangerous if there are no dates with days above 12 - ie: it is very likely to misread the displayed date because there is no obvious error.
When manually setting the cell-format in Excel to date, everything seems fine and the format changes with the locale of the OS.
Is there any possibility to force the cell to be formatted as Date in Excel without having to edit the Excel file itself?
P.S: numbers are also not formatted as a number but as [$-10409]#.##0,00;-#.##0,00 - which is less of an issue but still potentially a source of errors. (format in the report is N2)
I've manages to solve similiar issue. Solution is rather simple.
In report editor, open Design view and select field, which you want to edit, right mouse click and choosee either Expression or Textbox properties. The rest is very intuitive as in Excel editor.