• ganapathy.arvindan (5/30/2016)


    Yes your right, it is a pivot table, please let me know whether it is possible to calculate working days in pivot table itself, please help me in solving this

    Working from pivot tables, which are a result in themselves, is the wrong way to approach any of this.

    I recommend solving the problem using the data in the original tables and then pivoting the results if that's what you need for a final result. Think of it like any other code... keep the presentation layer separate from the other layers. Figure out the results first, the figure out how to display them. Life will be much easier across the board for this and similar problems.

    --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)