Viewing 15 posts - 2,011 through 2,025 (of 3,482 total)
I would start with looking up Gaps and Islands. There's Itzik Ben-Gan's code, which is a good starting point. Dig around there. Dwain Camps wrote some. how...
March 18, 2016 at 6:05 am
What columns you include in your date dimension should probably be determined by what kinds of summaries you intend to do with dates...
March 17, 2016 at 9:08 pm
Or link to your SQL Server database and use linked tables etc... I wouldn't waste a lot of space on my resume on Access. The market for it is almost...
March 17, 2016 at 6:43 pm
I got this to work...
I started with a dataset with a date column, Consent_Date.
Created a new table and entered this:
NewDateTable = CALENDAR(MINX('PatientSymptoms',[CONSENT_DATE]),MAXX('PatientSymptoms',[CONSENT_DATE]))
... which generated a table of all the...
March 17, 2016 at 3:09 pm
At the bottom of this page, it says that there are both 32- and 64-bit versions of SSRS.
March 17, 2016 at 1:33 pm
add a case sensitive collation to your query.
Here[/url]'s a really good example.
here's one I did ...
SELECT *
FROM dbo.Patient
WHERE LastName COLLATE Latin1_General_CS_AS LIKE 'Do%';
so a last name starting with 'DO' would...
March 15, 2016 at 3:21 pm
Removed the "compare to last week" part...
looks like there's a piece missing:
FROM MyData T1
LEFT JOIN T2
ON DATEADD(yyyy,-1,T1.InvoiceDate) = T2.InvoiceDate
(I think).
March 15, 2016 at 1:05 pm
I'm pulling week to date sales data (ex. if I were to run it tomorrow it would pull sales totals for Monday and Tuesday of this week). But, I want...
March 15, 2016 at 12:30 pm
You'll get more help if you post consumable data... like this:
CREATE TABLE LotData (
Lot INT,
TranDate DATETIME,
Qty INT,
UOM CHAR(2),
RunBal INT );
GO
INSERT INTO LotData(Lot, TranDate, Qty, UOM, RunBal)
VALUES (114044, '5/27/2015 3:25 PM',...
March 14, 2016 at 7:23 pm
Thanks Eirikur! Learned something new today!
Kinda wish you could choose which columns you wanted in the table, but not possible, I don't think. Super handy for when you...
March 14, 2016 at 12:51 pm
I think that's it. You can't mix 32 and 64bit on the same machine.
March 14, 2016 at 11:44 am
What I need to do is a sort based upon the birthdate, lang, and pernum.
Basically the sort for birthdate should meet the following criteria:
a. If a student is under 6...
March 13, 2016 at 11:14 pm
Jeff,
that's basically what I did. (it's like a mini star schema, and Calendar is just a dimension table). Turns out, I used your calendar table-valued function. =)...
March 13, 2016 at 4:31 pm
No, I'm using the Calendar table as a Dimension so I can lump sales etc into "bins" -- summarize by Year/Month whatever.
I was using a dataset someone gave me that...
March 13, 2016 at 3:36 pm
found an explanation for any other intrepid folks that might be trying to create a calendar using PowerQuery... (not sure why one would want to do that, since it's so...
March 13, 2016 at 1:28 pm
Viewing 15 posts - 2,011 through 2,025 (of 3,482 total)