Forum Replies Created

Viewing 15 posts - 1,831 through 1,845 (of 3,500 total)

  • RE: Credits and Debits

    Awesome... now I know what the question is! <g>

    You're doing FIFO (a queue), but with money. So the oldest debt gets paid first, and if there's any money...

  • RE: Credits and Debits

    I think I get it... you want to apply amounts to the oldest debt first, and then carry forward any remaining money and apply it to the next oldest debt....

  • RE: Credits and Debits

    Oh wait... I think I get it. You're kind of looking for patterns in when each debt gets paid off... so older debts (which are theoretically accruing interest) are...

  • RE: Credits and Debits

    I give. I don't get it. I see how in theory you should apply debits to credits or whatever, but I'm not sure why it matters. I must be missing...

  • RE: ssrs 2008 default parameter value

    Sorry, my installation of SSRS 2008 and even 2008R2 are both long since gone.

    In 2016 (so this may not work for you), you go to Parameter Properties.

    Check Allow Multiple Values.

    Go...

  • RE: Credits and Debits

    Could you please explain the logic of how you get to the expected result? The running total over the CustomerID is really close, but wrong somehow... but why?

    How is the...

  • RE: Credits and Debits

    Here's my setup so other folks can play along:

    --TransactionIDCustomerTransactionTypeDateAmount

    SELECT CustID

    , TransID

    , TType

    , TDate

    , Amt

    , SUM(Amt) OVER (PARTITION BY CustID

    ORDER BY TransID

    ROWS BETWEEN UNBOUNDED PRECEDING

    AND CURRENT ROW) AS...

  • RE: Credits and Debits

    just wondering... what if you used a windowing function and did a running total of the value (credits are positive, debits are negative). Then it would act like a checkbook

    SUM(value)...

  • RE: How to do a PROJECT in DAX

    Okay, looks like I got bit by the "Reading Is Fundamental" bug...

    The short answer is CALCULATETABLE.

    When I actually OPENED Ferrari & Russo's DAX Patterns book, there's a chapter on Surveys...

  • RE: Count the occurrence of word in a Resume Table

    This kind of begs the question... If I had a resume like

    SQL Developer 2<24 months>

    Company ABC

    SSMS, SSRS, SSAS

    SQL Developer 1<36 months>

    Company XYZ

    SMS, SSRS

    how would you count my experience? doing...

  • RE: ssrs 2008 default parameter value

    Hmm.. that might explain the defective light saber...

  • RE: DISPLAY CURRENT RUN TIME -12 HOURS IN REPORT HEADER

    If you're getting the time the report was run, you can use the global variable Execution Time.

    =Globals!ExecutionTime

    You could get 12 hours before that using this:

    =DateAdd(DateInterval.Hour,-12,Globals!ExecutionTime)

    If you create a placeholder for...

  • RE: t-sql 2012 use a trigger

    Lowell brings up an interesting point that I totally forgot about. tightly coupling data insertion/triggers with e-mail can cause your inserts to fail if your mail server fails. ...

  • RE: t-sql 2012 use a trigger

    How is the data being inserted? By an SSIS package? Why not flag the duplicate there and manage the problem close to the data?

    you don't need .NET at all for...

Viewing 15 posts - 1,831 through 1,845 (of 3,500 total)