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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Jothi
Contributor III
Contributor III

Limit values of a dimension by using expressions

Hi, 

 

I want to limit the values to be displayed for a dimension using expression s

I want to display all values from Name column, except for those, where the SomeSetting Column value is < 4 in the same table. 

Reiterating -  Table1 has 2columns,Name & SomeSetting .

I need to show a bar chart whose dimension is ( Name where SomeSetting < 4)

Something like - Name where isShow = 

Labels (3)
1 Solution

Accepted Solutions
Or
MVP
MVP

When this comes up, my preference is to handle it script-side by using e.g.

Load Name, SomeSetting, if(SomeSetting<4,Name) as NameForChart

From Table1;

And then use NameForChart in your bar chart.

However, you could also handle it on the front end by using a calculated dimension. This may or may not require using aggr() depending on whether SomeSetting is a simple field or a more complex expression.

View solution in original post

1 Reply
Or
MVP
MVP

When this comes up, my preference is to handle it script-side by using e.g.

Load Name, SomeSetting, if(SomeSetting<4,Name) as NameForChart

From Table1;

And then use NameForChart in your bar chart.

However, you could also handle it on the front end by using a calculated dimension. This may or may not require using aggr() depending on whether SomeSetting is a simple field or a more complex expression.