Forum Replies Created

Viewing 15 posts - 2,041 through 2,055 (of 3,507 total)

  • RE: Case sensitive with ROLLUP

    add a case sensitive collation to your query.

    Here[/url]'s a really good example.

    here's one I did ...

    SELECT *

    FROM dbo.Patient

    WHERE LastName COLLATE Latin1_General_CS_AS LIKE 'Do%';

    so a last name starting with 'DO' would...

  • RE: Is this possible

    Removed the "compare to last week" part...

    looks like there's a piece missing:

    FROM MyData T1

    LEFT JOIN T2

    ON DATEADD(yyyy,-1,T1.InvoiceDate) = T2.InvoiceDate

    (I think).

  • RE: Is this possible

    I'm pulling week to date sales data (ex. if I were to run it tomorrow it would pull sales totals for Monday and Tuesday of this week). But, I want...

  • RE: SQL to return From/To dates with gaps based on running balance

    You'll get more help if you post consumable data... like this:

    CREATE TABLE LotData (

    Lot INT,

    TranDate DATETIME,

    Qty INT,

    UOM CHAR(2),

    RunBal INT );

    GO

    INSERT INTO LotData(Lot, TranDate, Qty, UOM, RunBal)

    VALUES (114044, '5/27/2015 3:25 PM',...

  • RE: PowerBI Desktop - CALENDAR() function

    Thanks Eirikur! Learned something new today!

    Kinda wish you could choose which columns you wanted in the table, but not possible, I don't think. Super handy for when you...

  • RE: Getting a "Save architecture installation" failed error message

    I think that's it. You can't mix 32 and 64bit on the same machine.

  • RE: t-sql 2012 sort order

    What I need to do is a sort based upon the birthdate, lang, and pernum.

    Basically the sort for birthdate should meet the following criteria:

    a. If a student is under 6...

  • RE: PowerBI Desktop - CALENDAR() function

    Jeff,

    that's basically what I did. (it's like a mini star schema, and Calendar is just a dimension table). Turns out, I used your calendar table-valued function. =)...

  • RE: PowerBI Desktop - CALENDAR() function

    No, I'm using the Calendar table as a Dimension so I can lump sales etc into "bins" -- summarize by Year/Month whatever.

    I was using a dataset someone gave me that...

  • RE: PowerBI Desktop - CALENDAR() function

    found an explanation for any other intrepid folks that might be trying to create a calendar using PowerQuery... (not sure why one would want to do that, since it's so...

  • RE: PowerBI Desktop - CALENDAR() function

    That someone would be me =).

    No, I didn't install SSAS. I was just trying to see how much I could do in PowerPivot without using T-SQL. When I...

  • RE: t-sql 2012 sort order

    create a calculated column in your T-SQL to evaluate to 1 or 0 based on your rules, and then sort by that. (Although the sort order in your report will...

  • RE: Table for display only - not for dataset

    I would create a dashboard in Excel or PowerBI Desktop. Doing it in SSRS would be a lot harder.

    Drill through in PowerBI Desktop is automatic. No programming or anything...

  • RE: traverse query

    Maybe this will help?

    Displaying Sorted Hierarchies[/url]

  • RE: Mid result in ssrs

    FirstDelim and SecondDelim are just (intermediate) Calculated Fields in my SSRS dataset. The result you're interested in is the third one that use FirstDelim and SecondDelim. You could...

Viewing 15 posts - 2,041 through 2,055 (of 3,507 total)