I am trying to implement ordering by date in rdlc report. The data is filtered on the basis of from date and to date. I have also added header on the top of the report as 'Month Name' Details(e.g. Nov Details)
The date format of a column on which I am using order by is 'MM/dd'.
I am passing below parameters -
From date -> 01-Nov-2020, To Date -> 28-Feb-2021
and I am getting data as Jan 2021, Feb 2021, Nov 2020, Dec 2020, which is wrong.
I want the output as Nov 2020, Dec 2020, Jan 2021, Feb 2021 and so on in the report.
I tried making changes in expressions and changed format in stored procedure also but its not working.
Please provide a solution.
In a tablix data region, set the sort expression for the data region or for each group, including the details group.
use direct date field in sort expressions or use below expression
=Cint(Format(Fields!DateField.Value, "yyyyMMdd"))
Related
I have a expression written in one of my SSRS report as below
=IIF(IsNOTHING(First(Fields!StoreOpenDate.Value, "dataNRO"))," ",Format(DateAdd(DateInterval.Day,-1,Today()),"yyyyMMdd").ToString())
Output : 20221123
My requirement is : I want to display output in following format
Wednesday, November 23, 2022
Please help me with expression code.
I have a MySQL table containing some data with the following format:
Year, Month, Value
2012, Nov, 33
2012, Dez, 34
2013, Jan, 35
...
2013, Dez, 40
and so on...
I want to do a column chart, where my categories are the Months (from Jan to Dez) and where I plot my data, [2012, 33], [2012, 34], etc.
I'm retrieving my data from MySQL with a group_concat from values, by year.
The problem: When I plot my data, if I have information to every month of every Year (since my categories go from Jan to Dez for some year at least) everything goes OK. But, if like in 2012, where I only have data for Nov and Dez, my chart gets messed up because the data is assumed as being from Jan and Fev (for example).
How can I solve this? There must be a better way than adding zeros to the string data I suppose. Maybe a different type of MySQL query? Or plotting data differently?
I appreciate any thoughts on this!
Thanks!
I have a web page with a DatePicker control (from Kendo UI) on it.
Firstly, I'm in New Zealand, which is UTC +12:00
When I select a date of 31st October 2012 in my date picker, it gets stored in the JavaScript object as:
Wed Oct 31 00:00:00 UTC+1300 2012
This seems wrong!
It gets serialized to JSON (using JSON.stringify) as 2012-10-30T11:00:00.000Z, which is wrong.
Back on the server, when the JSON is parsed, this comes out at 30th October 2012, 23:00.
Can somebody explain this to me? And what is the solution?
I have this figured out now - the date picker control is working correctly, as for the date of October 31st, New Zealand will be in Daylight Savings Time, so at that date, we will be UTC +1300.
My problem is that my server code is converting to UTC on the basis of today's date, rather than using the offset as it would be on the the actual date.
I'm a bit confused with this one.
I have a Dataset with a BackupDate and a BackupTime as well as a BackupType. The BackupDate is comprised of 12 characters from the left of a datetime string within a table. The BackupTime is comprised of 8 characters from the right of that same datetime string. So for example: BackupDate would be 'December 12 2008' and the BackupTime would be '12:53PM.'
I have added an XY-scatter chart to the report. I've added a 'series' value for the BackupType (so one can distinguish between a Full/Incr/Log backup). I've added a category value of BackupDate and set the Scale for the X-axis from the Min of BackupDate to the Max of BackupDate. I've then added an item to the Values with the Y variable set to BackupTime and the X variable set to BackupDate. The interval for the Y-axis is 12:00AM to 11:59PM and the formatting for the labels is 'hh:mmtt'.
The BackupTime matches the format of the Y-axis. The BackupDate matches the format of the X-axis. 10 entries are retrieved by my Dataset and the Legend is properly populated by the BackupType field.
No points are being plotted on the graph and no markers/pointers are shown if they are enabled. There should be a point on the graph for every point in time of each day there is a backup of a specific type.
Am I missing something? Does anyone know of a good tutorial dealing specifically with XY-scatter graphs and using them in a way I intend?
I am using the 2005 version of SSRS rather than the 2008 version.
Screenshot of what my chart currently looks like:
In case it could be dataset related:
SELECT TOP (10) backup_type, LTRIM(RTRIM(LEFT(backup_finish_date,
12))) AS BackupDate, LTRIM(RTRIM(RIGHT(backup_finish_date, 8))) AS BackupTime
FROM DBARepository.Backup_History
As requested, here are the results of this query. There is a Where clause to constrain the results to a specific database of a specific server that was not included in the above SQL Query.
Log Dec 26 2008 12:00PM
Log Dec 27 2008 4:00AM
Log Dec 27 2008 8:00AM
Log Dec 27 2008 12:00PM
Log Dec 27 2008 4:00PM
Log Dec 27 2008 8:00PM
Database Dec 27 2008 10:01PM
Log Dec 28 2008 12:00AM
Log Dec 28 2008 4:00AM
Log Dec 28 2008 8:00AM
As the data grows, the scatter chart avoids X-axis values if it extends the (floating/numeric) limitations
Open the chart properties->X-Axis tab->Minor tick mark->Numeric or time-scale values...
It should solve your problem.
Is there a way to define the weekly period I would like to use on a report, Currently Access has the week defined as sun through sat, I would like to use mon through sun.
The Weekday function has an optional parameter to define the start day - is that any use?