Camilo Amarcy
New Member
Hi All,
I have an assignment with the following rules:
Phase 1:
File Specification
1) 250k rows (each row is related to a specific customer)
2) For each customer I have Debit Value, Credit Value and Balance Value.
The file has a monthly information for all customers and it looks like:
Coll A= Customer ID
Coll B = Debit Value (Day 1)
Coll C = Credit Value (Day 1)
Coll D = Balance Value (Day1)
Coll E= Customer ID (note: position of customer ID is not the same of Coll A, because customers perform debit or credit in different hours). Ex: on Coll A the customer 0001 is on row 3, and on day 2 the customer can be on row 200000.
Coll F = Debit Value (Day 2)
Coll G = Credit Value (Day 2)
Coll H = Balance Value (Day2)
Same happens for Day 3 till day 30.
I used VLOOKUP and according with my maths it was required 7,5 millions of VLOOKUPS (it took 8 hours to process Credit Value for 30 days).
Phase 2:
After the tables become organized, I need to extract the maximum Credit Value for each customer during the month. In order to discovery what is his/her salary and assign a tag (according with our quallification)
Any Suggestions to optimize this query with Pivot Table or Power Pivot?
I have an assignment with the following rules:
Phase 1:
File Specification
1) 250k rows (each row is related to a specific customer)
2) For each customer I have Debit Value, Credit Value and Balance Value.
The file has a monthly information for all customers and it looks like:
Coll A= Customer ID
Coll B = Debit Value (Day 1)
Coll C = Credit Value (Day 1)
Coll D = Balance Value (Day1)
Coll E= Customer ID (note: position of customer ID is not the same of Coll A, because customers perform debit or credit in different hours). Ex: on Coll A the customer 0001 is on row 3, and on day 2 the customer can be on row 200000.
Coll F = Debit Value (Day 2)
Coll G = Credit Value (Day 2)
Coll H = Balance Value (Day2)
Same happens for Day 3 till day 30.
I used VLOOKUP and according with my maths it was required 7,5 millions of VLOOKUPS (it took 8 hours to process Credit Value for 30 days).
Phase 2:
After the tables become organized, I need to extract the maximum Credit Value for each customer during the month. In order to discovery what is his/her salary and assign a tag (according with our quallification)
Any Suggestions to optimize this query with Pivot Table or Power Pivot?