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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Making variable value execute as an expression

Hello! I am trying to create and execute a dynamic expression for each KPI based on the hospital department a user selects. I was able to create an expression dynamically but could not get it to execute.

The following expression:

=Concat({$<[KPI Rank] = {'1'} >} MetText) results in

count(DISTINCT [ACCOUNT_NBR_ENC]).

How do I use a nested aggregation to make this value evaluate? I would like to see a numeric value.
In the example above, I would like to see the result of 'count(DISTINCT [ACCOUNT_NBR_ENC])'. Any help is appreciated. I have attached my application.

Thanks

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

It looks like you answered your own question in your posted example. .

=$(=only({$<[KPI Rank] = {'1'} >} MetText))

I'd prefer only() over concat() in this example unless you are actually trying concat multiple values.

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

It looks like you answered your own question in your posted example. .

=$(=only({$<[KPI Rank] = {'1'} >} MetText))

I'd prefer only() over concat() in this example unless you are actually trying concat multiple values.

Not applicable
Author

Thank you