• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Best way to extract data? / build pivot?

kucker64

New Member
so I have a set of sample data, attached. I need to to some analysis, i.e. calculate lag time between current Status & previous status(by status type), calc bonus hrs by mgr, etc.

I can easily accomplish some of this in a pivot, but unfortunately, the data set contains both statuses in each single record. Should I build a pivot off this data as it, or would I be better off duplicating each record & include each status type in its own record - thereby having only one status in each row. for example the first record would be split to become:

Before:
Id_______ Current Status___ Date___ Previous Status__ Date2
52979___Assessor Complete__ 3/13/2014__ Assessor Open__ 3/10/2014

After:
Id Current Status Date
52979 Assessor Complete 3/13/2014...
52979 Assessor Open 3/10/2014...

My other issue would be that I don't want to double count the Hours for each ID in my data(if I split up the records as suggested above).
I added a measure in last column to calculate time lag & some example pivots are included. Feedback or any other suggestions appreciated.
 

Attachments

  • test data.xlsx
    37.6 KB · Views: 7
Hi,

Can you please create sample manual Output with 2 or item..
so that we can look the expected output..
 
I also just recently started playing around with PowerPivot (know the basics), if anyone has a suggested PwrPvt solution. Thanks so much.
 
Back
Top