Forum Replies Created

Viewing 15 posts - 3,946 through 3,960 (of 4,085 total)

  • RE: Rolling 3 Weeks

    Is your EndDate always the same as the PeriodEndingDate? If not, when is it different and what should the value be?

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Too many CASE statements...how to avoid??

    A big part of your problem is that your data is not normalized. Having normalized data will greatly reduce the need for CASE statements. I was able to...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SELECT Data not in the table from another

    I find the EXCEPT clause works well in these situations, particularly as the number of columns you want to compare increases.

    SELECT *

    FROM db1..tbl1

    EXCEPT

    SELECT *

    FROM db2..tbl1

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: DTS problem

    ali.mahmoud.habib (3/11/2010)


    Executed as user: FNS\SYSTEM. DTSRun:....

    I don't know why give access denied, while when running it manualy use enterprise manager work very well

    When running it manually, you are using your...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Excel source having more than 255 characters

    SSIS bases its datatypes on a sampling of the records (8 rows by default) from the Excel file. If none of the records in the sample are longer than...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SSIS Transaction Rollback

    First, the parent package CONTAINS the child package. The success/failure of the parent package is not determined until it finishes executing and it cannot finish executing until each of...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SSAS MDX Get Previous Year Month data date range sales

    You're going to have to use ParallelPeriod(). If you have the week level in your hierarchy, that will probably work best. ParallelPeriod([week], 52, [FromDate]):ParallelPeriod([week],52,[ToDate]). Something like that...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Using parameters in SSRS 2008 with SSAS as datasource

    The "Available Values" for your parameter is set to "From a Query". It is this query that you need to change.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Using parameters in SSRS 2008 with SSAS as datasource

    It depends on whether you're querying a dimension or a hierarchy. With a dimension it's easy, just change [Dimension].members to [Dimension].children. For the hierarchy, it depends on how...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Still having trouble with KPIs

    It's really hard to say for sure, because so much depends on the actual structure of your cube.

    I think that you're probably going to need to reference the .currentmember of...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Parameterized MDX query in SSRS report - Getting error

    You need to use StrToMember() to convert your parameter value to a member.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Substracting Line 2 from Line 1

    I think that this is one of the cases where a CTE is much, much clearer. First, it makes it obvious that you are joining the same query to...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: help writing query

    You could also use a CTE.

    WITH CTE AS (

    SELECT

    orderlineid

    , date

    ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: cast stuff with nested where

    mm (9/15/2009)


    I tried your suggestion Drew and it's what I'm looking for!

    Except... I'm getting a 'Incorrect syntax near 'END'.' I'm sure it's something dumb I'm overlooking.

    -Michelle ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: cast stuff with nested where

    Since you haven't posted DDL, sample data, and expected results, I can't test this. Try the following:

    SELECT DISTINCT CRM_Orders.TRANSACTION_ID, CRM_StatusCodes.USER_STATUS, CRM_OrganizationalUnits.STEXT

    FROM ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 3,946 through 3,960 (of 4,085 total)