Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
almalecha
Contributor II
Contributor II

Trying to indicate <= numeric variable in Set Analysis

Hello,

I've created a variable vTopBoxScore, and intentionally left the '=' out so it will calculate per row in my pivot table.

NUM((SUM([TB MO Number Indicator NBR]) / Count([TB MO Case ID])) * 100, '##.#'))

In an expression within the pivot table then, I would then like to show a max benchmarking score that is less than or equal to the variable.  I've tried the sytnax below, but it isn't returning anything.  

=MAX({$<[TB Overall BR Benchmark Score Amount] = {"<=$(vTopBoxScore)"}>} [TB Overall BR Benchmark Score Amount])

I've also tried changing the dollar sign expansion to the below, but then it seems to always return the max benchmarking score, and ignore the set analysis all together.

=MAX({$<[TB Overall BR Benchmark Score Amount] = {"<=$($vTopBoxScore)"}>} [TB Overall BR Benchmark Score Amount])

Is there perhaps a different way I should be using the dollar sign expansion, or a different syntax in the expression?   Any help would be greatly appreciated.

Thank you,

Amy

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

You vTopBoxScore variable has mismatched parentheses

View solution in original post

2 Replies
m_woolf
Master II
Master II

You vTopBoxScore variable has mismatched parentheses

almalecha
Contributor II
Contributor II
Author

Ah, sorry, I missed a parentheses when I copied and pasted into my post.

The variable looks like this:

(NUM((SUM([TB MO Number Indicator NBR]) / Count([TB MO Case ID])) * 100, '##.#'))