Public Function CustomSortOrder(ByVal RAG As String) as Integer
Select Case RAG
Case = "Up to 6 month"
Return 1
Case = "7 to 12 months"
Return 2
Case = "More than 12 months"
Return 3
End Select
End Function
=Code.CustomSortOrder(Fields!RAG.Value)
Tuesday, 11 October 2016
Thursday, 30 June 2016
ssrs subreport background colour
Ssubreport properties.
Select Parameters and add a parameter.
The name column is the name of the parameter in the subreport (rowcolour) and value is the value to set it to.
Set Value to the same expression used to set the background color for the row.
background color =Parameters!rowcolour.Value into the expression builder.
Select Parameters and add a parameter.
The name column is the name of the parameter in the subreport (rowcolour) and value is the value to set it to.
Set Value to the same expression used to set the background color for the row.
background color =Parameters!rowcolour.Value into the expression builder.
Monday, 20 April 2015
combine multiple rows into one
LEFT OUTER JOIN (
SELECT ref, STUFF
((SELECT ' ' +
com_text
FROM comm
WHERE ref = q1.ref
ORDER BY comseq ASC
FOR XML PATH('')), 1, 1, '') [Comments]
FROM comm AS q1
GROUP BY ref
) AS Comm ON Comm.ref = x.ref
SELECT ref, STUFF
((SELECT ' ' +
com_text
FROM comm
WHERE ref = q1.ref
ORDER BY comseq ASC
FOR XML PATH('')), 1, 1, '') [Comments]
FROM comm AS q1
GROUP BY ref
) AS Comm ON Comm.ref = x.ref
Tuesday, 6 May 2014
Green bar for a group header - SSRS
=IIF(RunningValue(Fields!xxx.Value,COUNTDISTINCT,NOTHING) MOD 2 = 1,
"White","PaleGreen")
=iif(RunningValue(Fields!xxx. Value,CountDistinct,"parentgroupname") Mod 2,"WhiteSmoke","White")
Tuesday, 24 December 2013
List all Stored Procedures within a db - SQL
SELECT
*
FROM
TFSheffieldNew.INFORMATION_SCHEMA.ROUTINES
WHERE
(ROUTINE_TYPE = 'PROCEDURE')
*
FROM
TFSheffieldNew.INFORMATION_SCHEMA.ROUTINES
WHERE
(ROUTINE_TYPE = 'PROCEDURE')
Subscribe to:
Posts (Atom)