SQL Server Report Builder Number Formatting - sql

I am creating Reports in SQL Server Report builder.
When I set format of any number fields, in design it is displaying sample value.
For e.g. If I set format 0.00 to one numeric field, it started to display 12345.00
I have 10-12 fields in design, it caused very much confusion.
Is there any solution to change this?
When I open report in Visual Studio, it doesn't display like that.
Check Following screenshots:
In Report Builder:
In Visual Studio:

Finally, I got solution:
There is option in toolbar.

From what you described looks like you have an issue with the regional settings number format.
In your development environment, the decimal values are retrieved correctly, so you got 123.45 instead of 12345.00
In your target environment, the format of the decimal values is different, for example is 123,45 (comma instead of dot) so you get 12345.00

Related

#Error in SSRS tablix but ok in SQL side of SSRS

I am using Visual studio 2019 with SDDT 2017.
My report pulls the data direct from SAP B1, all of the fields in the SQL query designer give the output I am expecting. When I use this data in building my tablix I get a #Error.
The calculation that works ok in SQL is WOR1.IssuedQty - OWOR.CmpltQty * WOR1.BaseQty, the answer gives me 11 decimal places
I have narrowed it down to the field WOR1.BaseQty this field is causing the output to Error., the field in SQl shows the type as numeric ( 19,6) ( as it does for the other numeric fields in the table but they all present ok in the ssrs output tablix and as I say calculates all ok.
When I choose the field in the Tablix I get no answer just #Error. I have tried casting and converting the output of the calculation in SQL side and within adding a filed post SQL ( in the dataset properties and within the Tablix,to different data types but still get the error.
I have exhausted google.
I would appreciate some help ….. please....
Thanks
Tony

Does SSRS Report Builder always default date to MM/dd/yyyy?

I am setting up some reports on report builder and the date format always shows as MM/dd/yyyy, I want the format to be dd/MM/yyyy. I have checked the language of the server, database and user and they are all set to British English, I know this can be changed at report level however I am hoping to give end users the ability to create reports and not have to change this on each report. Is there anything I can set so this is always set to British English format or does report builder always show in American format?
I know this question is posted quite a lot but from what I have seen this is always about changing the format at report level but I want to change the default.
Thanks
If you want to display according to client's datetime format then you have to specify in Language property of Report.
Set =User!Language in Language property under localization tab of Report properties
What I do is instead of starting from a blank report each time I have a Basic Report Template file saved in a folder on the reporting server that end users can access. This report is blank except for the basic formatting that is applied to pretty much every report (start and end date parameters, common datasource, company logo and basic report properties including language)
Altering this template functionally alters the defaults as no one is using the blank new file they are all loading the basic template and modifying from there. This way you can set the language property to en-GB save the template and voila! Dates should now be dd/MM/yyyy.
If you don't have a common report server you can create the basic template and save it as an .rdl file which you can send to your colleagues to use instead of the default blank file.
If you look at the date formats in Report Builder, you will notice that the first set of them have asterisks. These formats will change with the regional settings of the report. In the report properties, set the language to =User!Language. We use these settings, and everyone gets the format they expect.
you could amend the dataset to change the date format.
SELECT CONVERT(DATETIME, 'your date column', 103);
This largely depends on your server locale/ regional settings. Once you fix that on the SSRS server side, you will not have to do that each time anymore.

Report Builder 3.0, how to sort on a calculated field

I'm using Report Builder 3.0 with SharePoint Lists in SQL Server Business Intelligence Development Studio.
I have a textbox on the Tablix that calculates data from several fields using a VB.Net function in an expression. This textbox displays a date that is generated from that function.
I would like for my report to be sorted by that date, ascending - I have been unable to find anything helpful on this thus far. It is not a field in the dataset, so none of the canned options will work.
Thank you in advance for any assistance!
The answer was to use the same expression behind the field in the Sort properties of the Grouping properties, A-Z selected as the sort order.
A calculated field will show up in a tablix as a normal one and should be entered as Fields!cal.Value

Data type issues faced while exporting report from cognos to excel

When I export report from cognos to excel 2002 or 2007 format I want to convert the numbers to numeric data type.
I face issues after exporting when i try to find sum of certain columns it has values as
23,3456|
2356|
45,686.89|
20.00
due to this comma or other characters its taking the columns as text or some other data type.
so I manually convert to numeric data type and then apply summation functions. Need a solution to avoid this.
I want the decimal values to be decimal and numeric values to be numeric.
The region/language settings of your Cognos install does not match the region/language settings of Excel (which is inherited from Windows). The best solution is to adjust Windows settings to match Cognos or vice-versa.
Alternatively in the report in question you can override the Data Format of the values by selecting them and choosing Data Format from the properties window. From there you can adjust various settings such as forcing a specific data type as well as other options such as whether to use a comma separator.

Changing currency symbol in SQL Reporting 2005

I'm using SQL Reporting 2005. I'm formatting a currency in a cell using
Format(Fields!NetPrice.Value, "C")
but the format is coming out
$10.00
I want pounds so
£10.00
Can someone tell me where is the setting to do this. I've looked and google and can't find it. Is it obvious? I want to set it on the report level if possible and not alter SQL Server settings due to minimise impact elsewhere.
I could cast the currency to a string and add "£" I guess but I want to do it properly.
You shouldn't need to manually edit the RDL file. I guess you couldn't see the language section as you didn't have the report selected.
To see the report properties click on the background behind the outline of the report (the yellow section) and check the properties window or select 'Report' from the drop down when viewing the properties window.
By default, formats for date, currency, and numbers are determined by the report server language at run time.
To override the formatting provided through the report server language, you can set the Language property within the report when you design it. This can be set at the report level or the TextRun level. If you want to vary the formatting based on the language or local settings of the browser or client application, you can set the Language property to an expression that includes the User!Language variable.
This info was provided HERE.
On the Report you can set the Language Property which is in the Localization section. You will place the language code like en-GB in this property. You can also do this at the field level too if you want. This should pick-up on your Regional and Language settings on your PC. If you want to override this or control this then you can simply set the report property accordingly.
If you set this property and then view the code of the report (RDL) you will see this towards the very bottom:
<Language>en-GB</Language>
This information will be used for currency, date, and numeric conversions.