Forum Discussion
Difference between Reference and Duplicate
- 9 years ago
In simple terms, Duplicate will duplicate the code of the query while Query Reference will only refer the result of the query.
Duplicate is generally used when you would like to create a similar query and you do not want to type the same code. You can make changes to this query.
Reference in Query means you would like to use that Query results in some other queries where your original query remains as a base Query and it can be used in other queries for the further processing.
Well i believe the Duplication does impact as creating another OBJECT in the memory, where as referencing does not.
But it DOES create another object, doesn't it? When I have 10 queries that reference query A, then refreshing the dataset results in loading query A 10 times. Or at least that's what is shown in the loading window. Any idea how to avoid loading the data 10 times?
- pade7 years agoAdvocate III
If you need 10 copies of your table (by some reason) you can always do this at DAX level by:
copy1=originalTable copy2=originaltable etc...
If you first need to manipulate the table you can do this using any filter functions in DAX, e.g.
copy1=calculatetable(originalTable, column1="filterValue1" copy2=calculatetable(originalTable, column1="filterValue2" etc...
- filip_ai1 year agoAdvocate I
I have the same question. I am also wondering about the DAX alternative pade gives, if this bypasses any RLS filter on the original table being used.
- pade1 year agoAdvocate III
Good question. From the top of my head I would say that copying tables in DAX are not effected by RLS rules. Reason for this is that yu can have RLS rules operate on DAX created tables and columns. So applying the Hen and Egg rule, RLS will hit in at a later step