Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

filter dimension in chart

I have a dimension field which has multiple values . I want to restrict this dimension to show only a certain value . Basically dimension is country . I want to filter the dimension to show only India. How can edit the expression to show only India without editing the SQL query behind .

Thanks

3 Replies
Not applicable
Author

= Sum( {$<country={India}>} Value)

Not applicable
Author

I am not creating an expression field , I needed to create a dimension but that dimension only needs to show a single value. I am looking for something like {<country={India}>} but it is not working for me. Any ideas?

Not applicable
Author

For a quick solution create a dimension when loading the script

you can use

Load

country,

if(country = 'India',country) as My_country;

SQL Select * from tblCountry;