Forum Replies Created

Viewing 15 posts - 751 through 765 (of 3,544 total)

  • RE: Running Totals Problem

    Non Quirky Update solution (uses Tally table)

    ;WITH d (RowNo,PirateID,StartEvent,EndEvent,Duration) AS (

    SELECT ROW_NUMBER() OVER (PARTITION BY PirateID ORDER BY StartEvent),

    PirateID,StartEvent,EndEvent,DATEDIFF(second,StartEvent,EndEvent)

    FROM timeSpent

    ),

    r (RowNo,PirateID,N) AS (

    SELECT d.RowNo,d.PirateID,t.N

    FROM d

    JOIN dbo.Tally t ON t.N BETWEEN...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: SSRS: how to put 10 rows on first page and rest (1000+) rows on the second page

    Create a parent group and set the expression to

    IIf(RowNumber(Nothing)<=10,1,2)

    and set page break on the group

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Remove decimal values

    Normally this is done in the presentation layer, but if you must then

    '$' + REVERSE(SUBSTRING(REVERSE(CONVERT(varchar,CAST(Finance_Report As money),1)),4,255)) AS [FinanceReports]

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Format for year to display in grouping(SSRS) report

    If FY_1 is a year and assuming it is an int datatype then use the following expression

    =String.Format("Fiscal Year : {0}",Fields!FY_1.Value)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Format for year to display in grouping(SSRS) report

    "yyyy" formatting only works with date datatypes

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Indicator for to remain in one cell for a group

    No. As I already stated you would have to use different values (and changing indicator ranges) to get MIN to work the way you want.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Indicator for to remain in one cell for a group

    giszzmo (4/30/2014)


    It looks like it works! Thank you so much! Can you explain to me why you use SUM instead of MIN?

    Because MIN will not obey 0, -1, 1 order

    If...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Indicator for to remain in one cell for a group

    How about this

    =Switch(Sum(IIf(IsNothing(Fields!Passed.Value), 0, IIf(Fields!Passed.Value, 0, 1)))>0,0,Sum(IIf(IsNothing(Fields!Passed.Value), 1, 0))>0,-1,True,1)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Indicator for to remain in one cell for a group

    Try this

    =Switch(Sum(IIf(Fields!Passed.Value, 1, 0))>0,1,Sum(IIf(IsNothing(Fields!Passed.Value), 1, 0))>0,-1,True,0)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Select statement - Effective running

    Yes or Report Builder via web browser (if you have permission)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: .NET SSIS Script Task issue

    After

    Dim readStream As New StreamReader(sr, Encoding.UTF8)

    Add

    MessageBox.Show(webResp.StatusCode.ToString)

    MessageBox.Show(webResp.StatusDescription)

    MessageBox.Show(String.Join(",", Array.ConvertAll(System.Text.Encoding.UTF8.GetBytes(readStream.ReadToEnd()), Function(x) x.ToString())))

    This will give you three prompts, response status, response description and ascii codes for response buffer

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: .NET SSIS Script Task issue

    Change

    Dim respData As String = sr.ReadToEnd()

    to

    Dim...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Select statement - Effective running

    Informer30 (4/30/2014)


    Thanks for your replies....sorry for the lack of infomation..

    David, please can you advise further how I can achieve one ms excel report and 15 tabs via SSRS output?

    Only avaliable...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How to fetch count ?

    DECLARE @Result char(4)

    EXECUTE (@sql)

    SET @Result = CASE WHEN @@ROWCOUNT=0 THEN 'Fail' ELSE 'Pass' END

    UPDATE tableB SET [column] = @Result WHERE ....

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Showing the same report layout but multiple times for different invoices

    When you post there is a button bottom right (Edit Attachments) that will allow you to add attachments.

    If you could make a mock up of what you want it to...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 751 through 765 (of 3,544 total)