Forum Discussion

gtamir's avatar
gtamir
Post Patron
6 years ago
Solved

Help with a measure

Hi, The following is a measure from Marco Ruso. It works perfectly, but I want to understand it deeper. Thanks in advance. 1- In the Variable "FirstPurchaseCustomers" is the ADDCOLUMNS a virtual col...
  • d_gosbell's avatar
    d_gosbell
    6 years ago

    gtamir wrote:

    So it stays in memory as long as the project is on and you can refer to it, as I understand.

     


    No, the "table" only exists in memory for a few milliseconds while the measure is being evaluated in the context of a query. You cannot refer to it outside of the measure.  "virtual tables" is not a specific term, I'm using "virtual" as an adjective to describe the fact that the table variable is temporary and not persisted anywhere. It only exists for the duration of the evaluation of the measure (this is the way all variables defined using the VAR keyword behave).