Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Multiple Field Formula and Filter

$
0
0

Hi All, 

 

I am trying to figure out a way to calculate the following:

 

I need to take the minimum Average Customer Traffic for each Flash Sales in a 30 minute segment, so basically for each of the 30-sec in the flash sale, pick when Average Customer Traffic was lowest.  Then, divide by the 30 seconds leading in to the Flash Sale.  I have divided each 30 minutes period into 30 segments.  Do that for each flash sale in 30 minutes, then take the minimum for that 30 minutes and report that. 

 

I can get the minimum for a 30 minute segment by using the Summarize Tool but how can then pull in the minimum customer traffic value from the previous 30 segment prior to that. 

 

Below is a sample of the data set.  So for example I would need to be able to locate the 350 traffic number and then divide it by 700 for Store 12, and then again find 50 and divide it by 800 for store 13. The dataset has around 250,000 records that are not organized in this manner so I need to program this for a large scale module.  

 

ShopID || ItemID|| National Time || Segment Time || Custom Traffic || 

1 || 12 || 12:00:00 || 12:05:00 || 500 ||

1 || 12 || 12:00:00 || 12:05:30 || 600 ||

1 || 12 || 12:00:00 || 12:06:00 || 700 ||

1 || 12 || 12:00:00 || 12:06:30 || 350 ||

1 || 12 || 12:00:00 || 12:07:00 || 390 ||

1 || 13 || 15:00:00 || 15:20:00 || 800 ||

1 || 13 || 15:00:00 || 15:20:30 || 50 ||

1 || 13 || 15:00:00 || 15:21:00 || 300 ||

1 || 13 || 15:00:00 || 15:21:30 || 530 ||

1 || 13 || 15:00:00 || 15:22:00 || 200 ||

 

Any information would be great. 

 

Let me know if you have additional questions.

 

Thanks,

Dillon

 

 

 

 


Viewing all articles
Browse latest Browse all 4999

Trending Articles