Rally Excel Add-In Creation Date Query - rally

I am trying to run a query from the Excel add in to capture the # of defects in a certain date range.
For example:
Query: Defects Sprint 93
Type: Defect
Order: Creation Date
Columns: Creation Date
Filter: ((Creation Date >= 09/06/2012) AND (Creation Date 09/20/2012))
Note: I copy and pasted the filter string from the rally website. When i ran this exact view in Rally i got the results I expected.
Any help would be greatly appreciated. Thanks!!!

You'll need to use ISO format for the dates and remove the space from the field name:
((CreationDate >= 2012-09-06) AND (CreationDate <= 2012-09-20))

I am agree with Kyle answer but little modification in my query it worked.
like ((CreationDate >= 2012-09-06) AND (CreationDate < 2012-09-21))
Note : in second CreationDate i increased the date by 1 from 20 to 21 ,it would satisfy the condition perfectly.

Related

MS ACCESS Query dates range from linked Excel return wrong end date

I am working on MS ACCESS query to find data between two dates from linked Excel and input dates from Access form textboxes. Returned "Start date" has no problem, but "End date" missed one day. I tried to use different date format but failed and search a long time but no idea. Could any advice? Many thanks
The codes:
WHERE TransactionDetail.transactionDate >= Forms![Reports]![Text0] AND TransactionDetail.transactionDate <= Forms![Reports]![Text1]
This might be because the data has both date and time parts, so the combined datetime is greater than the date part alone. Try using DateValue():
WHERE DateValue(TransactionDetail.transactionDate) >= Forms![Reports]![Text0] AND DateValue(TransactionDetail.transactionDate) <= Forms![Reports]![Text1]
If you wish/need to take advantage of an index on transactionDate, you can use:
WHERE TransactionDetail.transactionDate >= Forms![Reports]![Text0] AND TransactionDetail.transactionDate < DateAdd("d", 1, Forms![Reports]![Text1])

Date Query in Access Suddenly Stops Working

I have a list of items I'd like to view by the date they most recently occurred. I am currently using this query.
SELECT Cleaning1, Max(Date1) AS most_recent
FROM CleaningLog
GROUP BY Cleaning1;
It worked yesterday when I was at work, but suddenly stopped working. It won't show to most recent date an event occurred for some of the items. I was wondering why this would suddenly stop working. I added date parameters to the four queries I have with this code. When that stopped working correctly, I decided to create a test query, without date parameters, and it still won't show me the most recent event that I typed in.
I tried playing around with the <, >, = signs in the date portion of the code, but nothing seems to capture the dates I added this morning. I should mention this is what I have for codes that have a date parameter:
SELECT Cleaning1, Max(Date1) AS most_recent
FROM CleaningLog
GROUP BY Cleaning1
HAVING Max(Date1) < Now() - 30;
What do you think would be a potential cause for this query to stop capturing dates? The dates in my database are not in chronological order, because I had to manually type in events that occurred in the past. Any help would be appreciated!
It seems like it won't use the data after ID 89. It worked fine yesterday afternoon. I added from ID 59 on this morning. All of the data was added the same way, through a form:
Convert your text date to a true date:
SELECT
Cleaning1,
Max(CDate(Date1)) AS most_recent
FROM
CleaningLog
GROUP BY
Cleaning1
HAVING
Max(CDate(Date1)) < Date() - 30;

Formatting Day Time X Axis in SSRS Charts

I am working on a SSRS report which compares data of 2 given months. I'm categorising the chart based on Day and time in the following format 1, 6:00 AM. I get this column from the T-SQL itself. But the axis does not come properly. It looks like below now which doesn't make sense. I want it to be in order from 1st to 30th with the time component.
I guess I need some kind of sorting on X-axis with respect to date time. Please help!
After deleting from sorts from chart I'm getting some extra repitive dates after comparing all 30 days of both months. Data from the query looks alright to me!
Thank you!
Ok. Large query
You X-axis are show value in format date,hh mm tt Right ?
Then you want to sort them with day number 1 - 30.
From your query I suggest you add 1 field is like this CAST(SampleCollected AS DATE) [orders] and use this field in Order in Query or Sort on SSRS (not recommend ) and if you use Order in Query must delete sort condition on chart sort.
But if result still not you want try to add MONTH(SampleCollected) As MonthG to order again like this
ORDER BY MONTH(SampleCollected),CAST(SampleCollected AS DATE)
Hope it's Help.

displaying records with a date at least one day greater then or = to today

I have a field in a table called DATEF. It displays dates as follows: 2013-11-25 08:30:00.000. The field is used to show appointment dates. What I need to show are future appointment dates from today or = to today. (Getdate) for some reason this is not working for me today. Appreciate the help. Thank you.
Try this... you're probably failing to factor in the time component. (This is for SQL Server, you'll have to find the equivalent for your respective environment)
SELECT <SOMETHING>
FROM TABLE
WHERE DATEF >= CONVERT(DATE,GETDATE())

record count based on current date (Today's date)

I have a form in which I enter a record and I have a field that automatically updates with the current date. I would like to add a subform that tells me how many records have been entered "today" based on current date (today's date). I would like it to keep a running total. I am new to asking questions in this format and appreciate any help and understanding.
For Access:
SELECT COUNT(*) FROM ... WHERE add_date BETWEEN DATE() AND DATE()+1;
as suggested by David W. Fenton in the comments.