Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to exclude a value in dimension's field

Hi,

i want to exclude one value in the field i'm using as dimension could you please help me about that?

i want to display Motor without '28 inch' for example.

Capture.PNG

1 Solution

Accepted Solutions
awhitfield
Partner - Champion
Partner - Champion

Hi abdallah,

one way is to replace the list box dimension with an expression e.g.

if(Motor <> '28 Inch', Motor)

Andy

View solution in original post

6 Replies
awhitfield
Partner - Champion
Partner - Champion

Hi abdallah,

one way is to replace the list box dimension with an expression e.g.

if(Motor <> '28 Inch', Motor)

Andy

jagan
Luminary Alumni
Luminary Alumni

Hi,

You can achieve this using Calculation Dimension like below

If(Motor <> '28 Inch', Motor)


If you are doing this in chart you can exclude this in Set analysis expression


=Sum({<Motor -= {'28 Inch'}>} Sales)


Hope this helps you.


Regards,

Jagan.

patroser
Partner - Creator
Partner - Creator

If you want to avoid both "28 Inch"'s you could transform the value within the conditional check.

if(lower(Motor) <> '28 inch', Motor)


in this case don't forget to write 28 inch in lower case


Patrick

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Maybe it's better to add some applymap() translation to your script so that different spellings all map to the same Dimension value?

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or a simple ...CAPITALIZE(Motor) AS Motor, ... in your script may already do wonders...

buzzy996
Master II
Master II

try this, use expression instituted of field in ur list box.

motor.PNG