Merge Queries efficiently - Please help me

OmriFrid

New member
Joined
Dec 1, 2018
Messages
1
Reaction score
0
Points
0
Excel Version(s)
2016
[FONT=&quot]Hi,[/FONT]
[FONT=&quot]I am trying to merge 2 big queries:[/FONT]
[FONT=&quot]1. My transaction query which contains all of my orders (some of the orders appears in more than 1 row, in case the customer ordered different products)[/FONT]
[FONT=&quot]2. A reference I created from my transaction query which group by order number and sum some of my columns from the original query (i.e all the items discounts that, again, may appear in more than 1 row).[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]The merge of the group by reference query to my transaction query is really slowing the model. Is there any solution to this issue? maybe a "set index" solution like you define to tables in SQL in order that the query won't need to run on the whole group by query every time? or a different method to create a group by based calculated column in my transaction query?[/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Thank you very much.[/FONT]
 
Back
Top