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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated dimension help - simple

hi,

I can't remember the syntax (the god awful syntax...)

Can someone help me ?

I want to make a calc. dimension which does the following

Question = 'A1a'

If i were writing in SQL, what I'm after would look like this:

SELECT

     Question

WHERE

     Question = 'A1a'

Could anyone help me get my syntax correcT?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Not sure if I understand, above calculated expression should only show the value A1a.

Ah, you may need to enable the option 'Suppress when value is NULL' on dimension tab.

View solution in original post

4 Replies
swuehl
Champion III
Champion III

If(Question = 'A1a', Question)

Not applicable
Author

Thanks- and how do i exclude all results not equal to A1a?

Not applicable
Author

If(Question = 'A1a', Question) - This only returns A1a values and excludes all others

swuehl
Champion III
Champion III

Not sure if I understand, above calculated expression should only show the value A1a.

Ah, you may need to enable the option 'Suppress when value is NULL' on dimension tab.