Hello - looking for some expert advice.
I have a table with with values by time period (months) for 4 years. I want to calculate "month to previous month delta" , "year over year delta" and "rolling 6 months sum"
I have 3 different approaches to use but not sure which one can do the calculations quicker.
1. Strictly use record set to relatively move up and down for each record to get the right reference value
2. Use a combination of simple record set and query to get reference values
3. Use Dlookup to get reference values
In the past I used to use #1 approach and it was time consuming. This time I used query (#2 approach) within my loop to get the values then update the table but this is taking too much of time too. I was reading online and understand that Dlookup takes too much time too.
Please advise which of the above approach is robust and efficient? or Please advise some other approach which can calculate faster. I have about 200k rcds
I have a table with with values by time period (months) for 4 years. I want to calculate "month to previous month delta" , "year over year delta" and "rolling 6 months sum"
I have 3 different approaches to use but not sure which one can do the calculations quicker.
1. Strictly use record set to relatively move up and down for each record to get the right reference value
2. Use a combination of simple record set and query to get reference values
3. Use Dlookup to get reference values
In the past I used to use #1 approach and it was time consuming. This time I used query (#2 approach) within my loop to get the values then update the table but this is taking too much of time too. I was reading online and understand that Dlookup takes too much time too.
Please advise which of the above approach is robust and efficient? or Please advise some other approach which can calculate faster. I have about 200k rcds