Showing posts with label column. Show all posts
Showing posts with label column. Show all posts

Friday, March 30, 2012

Reporting services Subreport

Hi,
Can I show my subreport under the "master" reports calling column.
I also want to show my subreport in a new window.
Please help me!the subreport in New window is called Linked report
Just create another report and Link it on Navigation Tab for specific
Column. check Jump to Report.
In order to open it in new window you need to put LinkTarget="_blank"
in the URl for the first report.
Mary wrote:
> *Hi,
> Can I show my subreport under the "master" reports calling column.
> I also want to show my subreport in a new window.
> Please help me! *
scorpion509
---
Posted via http://www.codecomments.com
---

Wednesday, March 21, 2012

Reporting Services non-existant feature-Column Difference Calculation

Hello Guys,

I have struggled to do this in Reporting Services but it does not do what I want it to do...SO

I need to take a value from a column in SQL 2005 table and subtract from a previous column...

For Example:

ID Detail info Year Difference

1 200 2007 50

2 150 2006 10

3 140 2005 0

Please help me to know how to do this in T-SQL...Thank You...

try this:

Code Snippet

declare @.t table(ID int, [Detail info] int, [Year] int)

insertinto @.t values(1, 200, 2007)

insertinto @.t values(2, 150, 2007)

insertinto @.t values(3, 140, 2007)

select ID, [Detail info], [Year],

isnull((select t1.[Detail info] - t2.[Detail info] from @.t t2

where t2.ID = t1.ID + 1),0)as [Difference]

from @.t t1

orderby ID

OR

select t1.ID, t1.[Detail info], t1.[Year],

isnull(t1.[Detail info] - t2.[Detail info], 0)as [Difference]

from @.t t1

leftouterjoin @.t t2

on t1.ID + 1 = t2.ID

orderby ID

|||

Excellent!

Thank You for prompt answer...Now do you know how to take multi-value parameter array values and pass to Sql Stored Proc?

|||

This takes a string of csv and turns it into a "table"

(note...you may want to change the schema...I have int a Utility schema)

Code Snippet

IFEXISTS(

SELECT*FROMsys.objects

WHEREobject_id=OBJECT_ID(N'[Util].[list2set]')

ANDtypein(N'FN', N'IF', N'TF', N'FS', N'FT')

)

DROPFUNCTION [Util].[list2set];

GO

CREATEFUNCTION Util.list2set( @.list nvarchar(max), @.delim nvarchar(10))

RETURNS @.resultset TABLE( pos intidentity, item nvarchar(max))

AS

BEGIN

IFlen(@.list)<1 RETURN;

DECLARE @.xList XML;

-- no validity tests are performed, depending input this could fail

SET @.xList =Convert(XML,'<list><item>'+REPLACE(@.list, @.delim,'</item><item>')+'</item></list>')

INSERTINTO @.resultset

SELECT data.listitem.value('.','nvarchar(max)')as item

FROM @.xList.nodes('/list/item') data(listitem)

RETURN

END

GO

You use it as such:

Select t1.*

FROM MyTable t1

inner join Util.list2set(N'1,2,3,4,5', N',') sel

on t1.ID = sel.Item

The input list can obviously be a variable, and the separator can be anything you want.

You can also modify it to use an XML input.

|||

could you be ever so kind and explain the function line by line and also why the XML stuff...

Thanks...I need a little help getting up to speed since I have been struggling with this issue and feel that I am on the cusp of getting the picture...just need a little push...

Thank You...

Reporting Services Matrix

Hello
Can you add a grand total row to a matrix like a pivot table. Can you sum
up results from a column in a matrix? Maybe add a calculated field to a
matrix?Hi Randy,
Right click on the "Rows" cell of the matrix and select "Subtotal".
take care!
Michelle|||Thank you very much. This worked
"Michelle@.bwalk.com" wrote:
> Hi Randy,
> Right click on the "Rows" cell of the matrix and select "Subtotal".
> take care!
> Michelle
>|||Does anybody know how to create a calculated field in a Matrix using a
subtotal value from a matirx against another value? I have a subtotal that
is taking 2 results from a column on a matrix. I want to take the subtotal
and divide it by a value returned from the other two fileds resulted from the
column on the matrix. To get a percentage. For example:
Matrix
Held Calls Calls Total Calculated FieldIn Matrix
20 50 70 HeldCalls/Total "to get %
"Randy" wrote:
> Thank you very much. This worked
> "Michelle@.bwalk.com" wrote:
> > Hi Randy,
> >
> > Right click on the "Rows" cell of the matrix and select "Subtotal".
> >
> > take care!
> > Michelle
> >
> >|||I'm looking for a way to do this with RS as well. I haven't found a way.
I'm going to write a Stored Proc that produces these types of results and
I'll just presesnt them in a grid.
"Randy" wrote:
> Does anybody know how to create a calculated field in a Matrix using a
> subtotal value from a matirx against another value? I have a subtotal that
> is taking 2 results from a column on a matrix. I want to take the subtotal
> and divide it by a value returned from the other two fileds resulted from the
> column on the matrix. To get a percentage. For example:
> Matrix
> Held Calls Calls Total Calculated FieldIn Matrix
> 20 50 70 HeldCalls/Total "to get %
>
> "Randy" wrote:
> > Thank you very much. This worked
> >
> > "Michelle@.bwalk.com" wrote:
> >
> > > Hi Randy,
> > >
> > > Right click on the "Rows" cell of the matrix and select "Subtotal".
> > >
> > > take care!
> > > Michelle
> > >
> > >

Wednesday, March 7, 2012

Reporting Services Excel Export

I am trying to export a report produced by reporting service /SQL 2000 to Excel which is failing with over column limit of 256 . Is there any solution/fix for this ?If memory serves ;-)

Excel has a column limit of 256.....

Might be wrong about that tho'

HTH

Steve