Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Im trying to get the column value and set it as a variable

Untitled.png

For the growing accounts column i have the expression as =fabs(Column(8)='Growing') and for the total mode i set it to sum of rows

how am i suppose to retrieve 328 and set it into a variable

1 Solution

Accepted Solutions
Not applicable
Author

Nvm thanks for the help bro i got it by using the macro

Sub Get_Growing_Accounts

Application.WaitForIdle

set cell=ActiveDocument.GetSheetObject("CH53").GetCell(1,10)

ActiveDocument.Variables("Get Growing Accounts").SetContent cell.text, True

set cell=nothing

End Sub

View solution in original post

3 Replies
vvvvvvizard
Partner - Specialist
Partner - Specialist

=sum(aggre(fabs(copy expression from column 😎 , dimension 1 used in straight table , dimension 2..ect )

Not applicable
Author

erm sorry what do you mean by dimensions?

Not applicable
Author

Nvm thanks for the help bro i got it by using the macro

Sub Get_Growing_Accounts

Application.WaitForIdle

set cell=ActiveDocument.GetSheetObject("CH53").GetCell(1,10)

ActiveDocument.Variables("Get Growing Accounts").SetContent cell.text, True

set cell=nothing

End Sub