Forum Replies Created

Viewing 15 posts - 3,976 through 3,990 (of 4,087 total)

  • RE: Add Details rows to a SSRS report

    Yes, you can use a WHILE loop, but I would not recommend it. According to the execution plan the WHILE loop is 24 times as expensive as the Tally...

  • RE: question on mdx scripting

    Mh (9/3/2009)


    So far, I have the following script written:

    with set [Hrsused] as

    'filter({[Dim Time].[Hour].Children},[measures].[Appt count] > 0)'

    member

    [dim time].[hour].[Hrsworked]

    as 'count({[Hrsused]})'

    please let me know how I can get the above result using...

  • RE: SET ANSI_NULLS ON/OFF

    inuts (9/2/2009)


    Can anyone guide with a logic for why ANSI_NULLS is ON by default?

    Because it's the standard and it increases code portability. On top of that, it's easy...

  • RE: How to find missing numbers in a sequence

    Dave Ballantyne (9/3/2009)


    Note that this will return potentially false positives for end of range..

    Also it will not detect if the initial receipts are missing.

    Do you know the expected ranges to...

  • RE: SSAS aggregate on month Level

    The key that you are using for your month dimension represents both the month and the year even though the name column you are using shows only the month. ...

  • RE: Add Details rows to a SSRS report

    It helps if you have a tally (or numbers) table, but it's easy enough to generate one on the fly. I've used the sys.columns table here, which should be...

  • RE: Help w/my Update Logic

    Here is what I believe is happening. Your FROM statement is doing an implicit join on the two tables. It is then calculating the original value for each...

  • RE: Calculate Groups based on date ranges (aka episodes of care)?

    peterzeke (9/2/2009)


    To Drew Allen: if you look carefully at the data, you'll see that the datediff ("DAYS") between FROM_DATE (March 4, 2005) and TO_DATE (June 6, 2005) for row #4...

  • RE: Calculate Groups based on date ranges (aka episodes of care)?

    Just to clarify. Shouldn't 4, 5, and 6 be in the same group, because the length of time between 4 and 5 is less than 60 and the length...

  • RE: Update from multiple records

    Try this approach.

    WITH UpdateRank AS (

    SELECT RecordTS, ObjectID, Value, Row_Number() OVER ( PARTITION BY ObjectID ORDER BY RecordTS Desc) AS RowNum

    FROM #mysourcetable

    )

    UPDATE...

  • RE: Need OUTER JOIN with INNER JOIN (3 tables)

    You DO NOT want to do a CROSS JOIN here. The problem with your original query is that a LEFT outer join will return all records from the LEFT...

  • RE: How to do a subquery in derived column

    The Conditional Split Task can only access information in the Data Flow, so you need to do your lookup before you get to the conditional split. You'll also need...

  • RE: MDX Help needed

    Without access to your cube, it's really hard to come up with the exact syntax, but you're going to need something like the following

    Generate(

    ( x.CurrentMember, y.CurrentMember...

  • RE: MDX Help needed

    You haven't really given enough information for us to help you. Do you want the max date for the entire cube, for "Y Name", or for the "My Name,...

  • RE: SQL Server not evaluating WHERE before Casting?

    Riz Gulamhussein (8/29/2009)


    In your original posting, I'd say it's the SELECT that's failing even before the WHERE is applied.

    Nope. SQL evaluates the WHERE clause before it evaluates the SELECT...

Viewing 15 posts - 3,976 through 3,990 (of 4,087 total)