Forum Discussion
Dynamically Generate a Table from Information Distributed Across Data Structure
Thank you for your response. That helped me with another problem. Unfortunately, I do not think that works for my posted problem. Let me explain.
For each unique Ctr_Id in tblCtrMtrDetail, I need as many rows as their are indices associated with the price schedule associated with the Ctr_Id. For example, for Ctr_Id =1 and Mtr_Id = 1, I have volume 100. Ctr_Id =1 has an associated Price Schedule Id =1. Price Schedule Id = 1, has 3 price indices associated with it Index_Id ={1,2,3} with Index_Proportions of {25%,25%,50%} for index 1,2,and 3 respectively. For the given CtrMtr combination (1,1), I would need 3 rows in my auto-generated table.
for that scenario the three output table rows would need to be:
Ctr Id Mtr Id Sched_Id Index_Id Allocated Volume
1 1 1 1 25
1 1 1 2 25
1 1 1 3 50
TonySwad,
Could you please share sample data of your tables?
Regards,
Lydia