Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using variables to create a set analysis expression

Hi,

I think that it could be very useful to create a set analysis expression as sum(myVar myAmount), with myVar built by a macro.

Is it possible? Thanks

3 Replies
erichshiino
Partner - Master
Partner - Master

Sure,

The syntax is almost like that.

You can use:

SUM( $(varSet) VALUE)

and varSet can be set by macro to be the following string (for example):

{<TEAM={A}>}

Not applicable
Author

Hi,

I've tried your syntax and I've a syntax error. VALUE is underlined in red.

Thanks

erichshiino
Partner - Master
Partner - Master

This is only and example, in this case I made sum of VALUE.

You can replace it by your fields (the same applies to the variable name and set analysis expression in it)

EDIT: I agree that QV 10 SR2 does not recognize this as a valid expression on the syntax checker but it works.

(You have to agree this is not a very common structure)