Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

AddExpression Macro

Hi Guys

i want to add the expression using macro but i want to evaluate also

AddExpression"Sum({<Name = {'var.Item(0).Text  '}>}   Data)"

The Problem is it is taking everything as a string which is between "" but i want to evaluate var.Item(0).Text

Please help

1 Solution

Accepted Solutions
deepakk
Partner - Specialist III
Partner - Specialist III

hi,

Try this code.

Graph.AddExpression "Sum({<Name = {" & var.Item(0).Text  & " }>}   Data)"

Deepak

View solution in original post

6 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi,

Try this code.

Graph.AddExpression "Sum({<Name = {" & var.Item(0).Text  & " }>}   Data)"

Deepak

Not applicable
Author

it is giving the error type mismatch

deepakk
Partner - Specialist III
Partner - Specialist III

just try var.text.

Can you attach an application.

Deepak

Not applicable
Author

thanks bro its working

Not applicable
Author

Can i get the no of rows in a particular table using macro?????????

deepakk
Partner - Specialist III
Partner - Specialist III

try this code

set TableBox = ActiveDocument.GetSheetObject( "CH01")

  v=  TableBox.GetRowCount-1