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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis & variables

Hi,

why is the following set analysis not working:?

sum({<Tree Name]=,Tree Group]={'$(=only([Tree Group]))'}, [ID]=,[Number Of Trees= >}  ({$(=vExpTotal )}* 1000))

this variable vExpTotal is using another variable. Do I have to do something  to the first variable?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be because you are missing some square brackets or is that a typo?

Sum({<[Tree Name]=,[Tree Group]={'$(=only([Tree Group]))'}, [ID]=,[Number Of Trees]= >}  ({$(=vExpTotal )}* 1000))

View solution in original post

8 Replies
sunny_talwar
MVP
MVP

May be because you are missing some square brackets or is that a typo?

Sum({<[Tree Name]=,[Tree Group]={'$(=only([Tree Group]))'}, [ID]=,[Number Of Trees]= >}  ({$(=vExpTotal )}* 1000))

Anonymous
Not applicable
Author

Does Syntax of your expression is okay?

Some where you forgot to place '[' bracket...and some where you forgot to place ']'..

may be this?

=sum({<[Tree Name],[ID],[Number Of Trees],[Tree Group]={'$(=only([Tree Group]))'}  >} ($(=vExpTotal ))*1000)

Not applicable
Author

Can you try this

=sum({<[Tree Name]=,[Tree Group]={'$(=only([Tree Group]))'}, [ID]=,[Number Of Trees]= >}  $(=vExpTotal )* 1000)

Anonymous
Not applicable
Author

this is not the correct answer

Anonymous
Not applicable
Author

this is not the correct answer

sunny_talwar
MVP
MVP

Why did you mark it as correct response my friend?

Anonymous
Not applicable
Author

I did not say "my answer is correct". I just asked to try like this?

Colin-Albert
Partner - Champion
Partner - Champion

What does the variable vExpTotal hold?

This variable may be incompatible with the rest of your expression. 
What happens if you replace ($(=vExpTotal )) with a different field for testing?