Viewing 15 posts - 871 through 885 (of 3,543 total)
It is because switch works with expression/object pairs, you need to write it like this
=SWITCH(SUM(Fields!MyVal.value) > .95, "Green", True, "Red")
December 11, 2013 at 6:26 am
Branch should be your top group and have new page set and put Branch in your page header.
You only need child groups if your are aggregating at those levels or...
December 11, 2013 at 6:13 am
Juul van Iersel (12/10/2013)
Thanks for your reply.
Your solution won't work, I'm affraid, because @Criteria1 applies to Column1, and @Criteria2 applies to Column2. When one of the @Criteria parameters is...
December 10, 2013 at 7:46 am
Lowell (12/10/2013)
SELECT
*
FROM ...
December 10, 2013 at 7:45 am
This is one of those 'it depends'
Doing two separate queries is not necessarily worse than one, I have in the past done two and found no problem with performance,...
December 10, 2013 at 6:33 am
;WITH cte (phone,[month],value) AS (
SELECTphone,
CASE WHEN dekabr = 0 THEN 1
WHEN noyabr = 0 THEN 2
WHEN oktyabr = 0 THEN 3
ELSE 4
END,
CASE WHEN dekabr = 0 THEN yanvar
WHEN noyabr =...
December 10, 2013 at 6:19 am
SELECT FullName,MIN(event_date) AS [LOGIN_time] ,MAX(event_date) AS [LOGOUT_time]
FROM Events
WHERE event_date >= '20131207'
AND event_date < DATEADD(day,1,'20131212')
GROUP BY FullName
December 6, 2013 at 8:23 am
;WITH cte (FromID,ToID,SalesIndicator,GroupNO) AS (
SELECT t1.ID,t2.ID,CASE WHEN t1.Sales < t2.Sales THEN 'UP' ELSE 'Down' END
,t1.ID-ROW_NUMBER() OVER (PARTITION BY CASE WHEN t1.Sales < t2.Sales THEN 'UP' ELSE 'Down' END...
December 6, 2013 at 8:17 am
Sigerson (12/6/2013)
Lowell,are those brackets a problem or not?
Nope, no problem.
If you script anything or use the shortcut menu to execute a procedure in SSMS it puts brackets around everything.
December 6, 2013 at 6:56 am
Nice! 😀
Query to show lowest date for a key where date as more than five entries
;WITH Test (SomeKey,SomeDate,RowNo)
AS (
SELECTSomeKey,SomeDate
,ROW_NUMBER() OVER (PARTITION BY SomeKey ORDER BY SomeDate ASC)
FROMSomeTable
GROUPBY SomeKey,SomeDate
HAVINGCOUNT(*) > 5
)
SELECTSomeKey,SomeDate
FROMTest
WHERERowNo...
December 6, 2013 at 6:34 am
halifaxdal (12/4/2013)
are you suggesting adding each milestone to the new table?
That would be my understanding.
You could add other attributes to the table (eg name of person who comppleted the milestone)
You...
December 4, 2013 at 7:57 am
Richard Warr (12/4/2013)
Take out the Workflow field from the Project table and have another table called ProjectWorkflow which would...
December 4, 2013 at 7:23 am
Use a login that has admin rights set for the Report Server and check the Subscription for the Report, the Owner is the login that created the Subscription
Otherwise
Find the subscription...
December 4, 2013 at 7:22 am
You could use bit locations of the int to store each status
ie Draft=1, Saved=2, Submitted=4, Returned=8, LARReviewed=16, LARSignedOff=32, SCRReviewed=64, SCRSignedOff=128
So a value of 36 would be Submitted and LARSignedOff=32 (4+32)
I...
December 4, 2013 at 7:07 am
You could add derived columns for missing columns to each transformation to make then the output the same and then use SSIS UNION to produce a single dataset
December 4, 2013 at 6:35 am
Viewing 15 posts - 871 through 885 (of 3,543 total)