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: 
jblomqvist
Specialist
Specialist

Advanced Topics - Parameterized Variables book example question

Hi,

In the Advanced Topics book on page 84 for Advanced Set Analysis, it uses the example of

Sum($1) / Sum(TOTAL $1)

What does the 1 represent? Is it a variable? It is not clear what is meant by this in the book.

Thanks

Labels (1)
1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

$1 means the first parameter passed to the variable. In this case it's also the only parameter and it would be a field name. For example

eSales: Sum($1) / Sum(TOTAL $1)

Expression: =if( vCurrency = 'USD', $(eSales(Sales_USD)), $(eSales(Sales_EUR)))


talk is cheap, supply exceeds demand