Viewing 15 posts - 1,861 through 1,875 (of 3,482 total)
You may need to use SUMMARIZE. Think of it like the DAX equivalent of a summary query in T-SQL... Complete with GROUP BY etc.
Here it is from the MS...
July 11, 2016 at 2:50 pm
In this case, I want to check to make sure the space is available for the entire date range, if not do not display the record.
In that case, you would...
July 9, 2016 at 8:21 pm
I would do this with a (deliberate) cartesian product between Calendar and ParkingSpaces...
SELECT p.ParkingSpace, c.CalendarDate
FROM ParkingSpaces p CROSS JOIN Calendar c
WHERE c.CalendarDate BETWEEN '01-Jan-2016' AND '31-Dec-2016';
then just insert that result...
July 9, 2016 at 1:55 pm
See if Alan Burstein or Eirikur Eiriksson will bite... might be Monday though.
July 9, 2016 at 10:15 am
I have a reasonable idea of what you're trying to do... What are the rules for removing non-numeric characters in the string, though?
What specifically do you mean by "standard" strings?...
July 8, 2016 at 4:01 pm
Can't you do a simple
INSERT INTO DestinationTable(Col1, Col2, Col3...)
SELECT GrpBy1, GrpBy2, SUM(NumericField)
FROM SrcTable
GROUP BY GrpBy1, GrpBy2;
July 6, 2016 at 3:34 pm
TinDog,
If you haven't done so already, check out PragmaticWorks.com Brian Knight knows SSAS inside and out. There are a bunch of free tutorials on their website. I think...
July 6, 2016 at 12:26 pm
Read this article[/url]. Note the warning: "Downgrading to a lower edition cannot be done in place. This tip will describe the steps needed to downgrade."
If you can, install a copy...
July 6, 2016 at 10:32 am
Welcome to SSC!
Since you're new and haven't quite figured out how to ask a good question, please help us to help you by reading this article[/url] and following the instructions...
July 4, 2016 at 11:10 pm
If you create a table of dates for the MWF dates, then you can use ROWNUMBER() to assign a sequential value to each date... then you can find a gap...
July 1, 2016 at 5:47 pm
If you're using 2012 or later, you can use LAG.
SELECT ID
, FLAG
, LAG(DT, 1) OVER (PARTITION BY ID ORDER BY DT) AS EffectiveDate
, DT AS TermDate
FROM ##Test;
Note that I'm assuming...
July 1, 2016 at 12:05 am
I guess if you're forced to do something "clever" then you have to document your code inside the code... not in some "book" somewhere that nobody can find. (Yeah, I've...
June 30, 2016 at 2:48 pm
I have a task where we need to populate data from one table to another one.
What's wrong with the INSERT INTO without all the variables?
INSERT INTO DestTable(col1, col2, col3)
SELECT [DISTINCT]...
June 30, 2016 at 11:21 am
a tally or numbers table is perfect for this. Jeff Moden has a great article on it here[/url].
Basically, you join your table that has the quantity you want to...
June 29, 2016 at 1:58 pm
Maybe he wants to see how painfully slow they are?
June 29, 2016 at 12:49 pm
Viewing 15 posts - 1,861 through 1,875 (of 3,482 total)