setting label month in Y-axis chart reporting services - sql-server-2008

My problem is concerning a chart in reporting services.
My dataset is looking as below:
MonthDue MonthDeleviry
Jan-2011 Mars-2011
Feb-2012 Jun_2013
Aug-2016 Oct-014
I want to make a graphique MonthDue(Y-axis) /.MonthDeleviry(X-axis) the problem is that Y-axis doesen't show label of month and convert it to FirstDayMonth/MM/YYYY. It seems that this axis dont accepte String value and allow just Numeric and date Format (dd/mm/YYYY)
Excuse my bad english
Can you help please.
Thanks

If the Y axis accepts a datetime but your data is a string of the format given, you could convert that string into a datetime for the start of that month.
=cdate("1-" & Fields!MonthDue)
Use this expression in the "Value" field of the "Values" tab when you edit the data in the chart properties.
Hope that helps.

Related

Why does applying a TimeSpan format inSSRS give Error SOMETIMES

No, there are no NULLs involved
Removing the Format string shows the TimeSpan using the default "c" format, so it is a definitely a TimeSpan object.
So, I have a report. The report contains a chart, and a Tablix list.
For the "Value" in the data source I have a TimeSpan.
In the chart, the Value is "=TimeSpan.FromTicks(Avg(Fields!Value.Value)))"
The Vertical Axis Property Number is set to "Custom" "HH:mm:ss"
Both the Vertical Axis, and the Data Labels show (for example) 00:07:13
I also have a Tablix, with a column that has at the Group and Total levels, a cell with "=TimeSpan.FromTicks(Avg(Fields!Value.Value)))"
With Number set to "Default", they both show (for example) 00:07:13.1234567, which is the "ToString" default.
If I set Number to "Custom" "HH:mm:ss", or to "Time", or I set the cell to "=TimeSpan.FromTicks(Avg(Fields!Value.Value))).ToString("HH:mm:ss")", or "=TimeSpan.FromTicks(Avg(Fields!Value.Value))).ToString("HH:mm:ss")", it renders as "#Error"
Any suggestions as to what's wrong here?
EDIT: hh\:mm\:ss works (lowercase H)
And it seems the answer is that the Chart will "somehow" allow a TimeSpan to understand the formatting specifiers for DateTime, where a Tablix formatter does not.
So, the Chart will treat HH:mm:ss as the same as "hh\:mm\:ss", where only the latter is a valid format for TimeSpan.

SSRS currency format

I have great difficulty getting the last finished on the report im building. It has to show a value, a currency value. the only problem, which is a small one, is that the report builder is showing a ',' as a 1000 seperator but i need it to show a '.' instead, for example:
right now it shows:
12,345,678.00
i need it to show:
12.345.678,00
I have read a lot of questions in here and tried out this code:
= (new Decimal(11123.55)).ToString("€#,0.00;(€#,0.00)",
new System.Globalization.CultureInfo("es-ES"))
But that aint working as well, then it outputs this in the report:
€11853724112355
I am all out of ideas now.
Thank you in advance
You should leave the value of the cell as numeric because this is better in certain instances, for example, exporting to Excel. Generally, data and presentation should be separated.
Your report probably has the Language property set to en-US. Set it to es-ES and set the Format property of the cell to C and it should display properly.

Weird SSRS Format Date Output in Header

For one of my Matrix reports, the column headers are Dates which I am trying to format in the form of 'Mon 07' i.e. short date name followed by date value.
For this I am using the expression - =Format(CDate(Fields!WorkedOnDate.Value),"ddd")
I then wanted to trim the right 3 letters.
I am getting weird output.
Here is what I am getting for one week-
Tue, We2, T12u,ri,SaA,Sun,7on
Any idea what is going wrong?
This was asked in this link but that answer didn't help -
The date formats do not seem to work in SSRS
I realize my mistake now. I was adding the Format property across Number-> Format property of that textbox. I solved this by adding as part of the textbox Property value.

dd/mm/yyyy date format in SSRS

i'm trying to specify dd/mm/yyyy dateformat for date/time parameter in SSRS 2008 R2.
My computers datetime format is mm-dd-yyyy.
My requirement is, i want to show date format at dd/mm/yyyy irrespective of the system/server date format.
I've already tried CDate(Format(Today,"dd/mm/yyyy")) which didn't work. one very strange thing i observed is, it shows dd/mm/yyyy format only for dates on or before 12-MM-yyyy, and 13 onwards it gives error: Conversion from string '25-04-2014' to type Date is not valid. (Possibly it is trying to map 25(daypart) with MM-dd-yyyy (month part)) which is out of range of total months i.e. 12)
my research on internet says it is a bug in BIDS 2008.
What do i do to display date as dd/mm/yyyy ??
I don't have enough reputation to comment, but I did notice that you failed to put "()" after "Today". If I'm not mistaken you must put Today() for that function to work. Also, you might want to try putting CDate Around the Today() function. You shouldn't need it, but it's worth a shot. Also, for some odd reason, in my experience, you must capitalize MM for format to work correctly.
Like #Aditaya said, it should be =format(Today(),"dd/MM/yyyy")
The expression I usually use is:
=FormatDateTime(Fields!Date.Value, DateFormat.ShortDate)
However, this may be region specific.
Rather than writing an expression to do the formatting, you can also use the Textbox Format Property. But first you need to make sure that the data is in a date format. So use the CDate function on your column like this:
=CDate(Fields!Date.Value)
Then in the textbox properties go to the Number tab. Select Date for the category. Then you can select whichever format you want or use a Custom format. This will change how the column displays when you run the report.

SSRS 2008 Time Format for a chart. does not work

I have an ssrs chat, I want to bind time valeus to y axis.
Data comes in "2013-11-21 16:07:31.000" format
I need 16:07 value as time. but no function give me that.
when I use cdate, and then Format it does not work . HHmm returns me an inteeger 1607 bur HH:mm doesnt work.
please help I am about to go crazy!
Try leaving your value, or setting up a calculated field that just uses =CDate(Fields!AverageTime.Value) or =DateTime.Parse(Fields!AverageTime.Value)
Then, I assume you use that date field as a category on your graph. Set the format on the X axis to HH:mm as shown below. Let the graph handle the display using format strings, don't use the Format function.