Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
GLicks_DG
Contributor III
Contributor III

Store information on Variables

Hi all,

Is there any way to store information from a given table into a variable?

For instance, I need to use the count of a given dimension in future calculations. So I was trying something like this:

 

Table:

Load Dim1, Dim2 from [a given file];

LET vCount = count(Dim1) resident Table;

 

Thank sin advance!

1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Try this

 

Temp:

LOAD

count(Dim1) as Dim1Count

RESIDENT Table;

LET vCount = peek('Dim1Count',-1);

DROP TABLE Temp;

View solution in original post

3 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Try this

 

Temp:

LOAD

count(Dim1) as Dim1Count

RESIDENT Table;

LET vCount = peek('Dim1Count',-1);

DROP TABLE Temp;

GLicks_DG
Contributor III
Contributor III
Author

@marcus_malinow It worked perfectly. Thank you!

marcus_malinow
Partner - Specialist III
Partner - Specialist III

You're welcome, happy to help