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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
SanthoshEmmadi
Contributor III
Contributor III

Limiting Dimension Field Values based on variable values

Hi All,

Is there a way to display the dimension values based on the variable value.

For example if I have the following table with Branch as a Dimension and Totals as an expression value which being derived from an expression using a variable vTotals:

BranchTotals
New York90
California41
Texas110
Cape Town107
Durban131

 

I have created another variable by name vTotalLimit which will be in an Input Box.

Now my target is to display the dimensions where the vTotals value is  >= vTotalLimit.

I tried to apply the following under Add Calculated Dimension but it displays all the dimensions.

=if($(vTotals )>=$(vTotalLimit),[Branch])

Can any one please suggest me a solution for it.

Thanks.

 

1 Solution

Accepted Solutions
sunny_talwar

May be try this

Aggr(If($(vTotals) >= $(vTotalLimit), [Branch]), Branch)

View solution in original post

2 Replies
sunny_talwar

May be try this

Aggr(If($(vTotals) >= $(vTotalLimit), [Branch]), Branch)
SanthoshEmmadi
Contributor III
Contributor III
Author

Thank you very much. It worked !