• ps_vbdev (2/6/2014)


    "The "5" in both forumlas could be any constant but either 1 or 5 seem to be the easiest to understand"

    so the 5 is an arbitrary value that is commonly used for the normalization calculation or is it based on the max number of Fridays a month COULD have.

    Thanks Jeff for your time, excellent explanation.

    Sorry for the delayed response. I picked the number "5" because it's the maximum number of Fridays that any month could have.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)