Make me look clever...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Make me look clever - Hard Excel problem / web intelligence problem

6 Posts
3 Users
0 Reactions
46 Views
 Ewan
Posts: 4336
Free Member
Topic starter
 

Can anyone help me with the following SAP Business Intelligence problem. I have a bunch of orders that are split into tasks. I am trying to work out the duration of each task. I have dates for start and end of each task. The complexity is that the order can go ‘on hold’ - during an on hold period, the clock stops, so any on hold duration needs to be excluded from the task duration. Essentially I need to do the following for each task:

1) Work out the task duration: Task duration = Task close date – task start date

2) Identify if any of the periods that the order was on hold took place during the time the task was open (an order can go on and off hold multiple times)

3) Subtract any relevant (ones that took place whilst the task was open) on hold periods from the task duration to give me Task duration excluding on hold

Ideally I want to do this inside of SAP Webintellegnce, but could export the two tables into excel if anyone knows a way of doing it that way

My two tables look like this:
[img] [/img]
[img] [/img]

My head is getting sore from banging my head against my monitor…


 
Posted : 30/11/2018 9:42 am
Posts: 36
Free Member
 

That status change table is not much use to you unless it's still in the database. As a report in a form of a list, the excel work required to extract the data you need each time would be a ball ache. Can you not interrogate with a query that sums the periods between status changes?


 
Posted : 30/11/2018 9:50 am
 Ewan
Posts: 4336
Free Member
Topic starter
 

Do you mean, make a table that showed the start and end date of each on hold period on a single row?


 
Posted : 30/11/2018 9:52 am
Posts: 36
Free Member
 

IF the status change table is generated (or can always be sorted) sorted by Order ID, then by Status Change date so that there is always an even number of rows for each Order ID, then you could put a conditional statement in the right hand column that always gives you the DATEDIF or YEARFRAC between each pair of OrderID rows, you can then use a conditional Sum for each OrderID to total the amount of Hold time in a given order


 
Posted : 30/11/2018 9:57 am
 Ewan
Posts: 4336
Free Member
Topic starter
 

Hmm.... good idea. That would only give me the overall duration for all of the on holds for that order wouldn't it? I need each inidvidual one so i can then take away from each tasks duration.


 
Posted : 30/11/2018 10:04 am
Posts: 1294
Free Member
 

So each order can have multiple tasks, you need the duration for each task, but the status changes are only linked to order ID and not task?


 
Posted : 30/11/2018 10:07 am
 Ewan
Posts: 4336
Free Member
Topic starter
 

Yep. But if a order is on hold, all tasks are on hold.


 
Posted : 30/11/2018 10:10 am

6 DAYS LEFT
We are currently at 95% of our target!