Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dimension not displaying

if(hold_1 = '043' or hold_2 = '043' or hold_3 = '043' or hold_4 = '043' or hold_5 = '043' or other= '043', 'ment', If(cd = 'DD' or cd = 'SV', 'Core', 'Cert'))

If this is the if-statement I am using, how do I get the dimension 'ment' to appear even when it doesn't satisfy the if-statement... I would like 'ment' to be displayed with all zeroes if it does not satisfy the if-statement

Is there any way this is possible?

18 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Use show all values in ìdimension tab but ... have you added an expression in your chart?

awhitfield
Partner - Champion
Partner - Champion

Hi Ashley,

any chance that you could upload your QVW please?

Andy

Anonymous
Not applicable
Author

Yes there are many expressions. And the 'show all values' selection is grayed out for this dimension

Clever_Anjos
Employee
Employee

Uncheck "Supress Zero Values" at Presentation tab

alexandros17
Partner - Champion III
Partner - Champion III

Then uncheck "suppress zero values" in presentation tab

Anonymous
Not applicable
Author

Unfortunately I have tried this and it does not work

Anonymous
Not applicable
Author

Also, changes nothing in what I am looking for unfortunately.

stigchel
Partner - Master
Partner - Master

Although it is usually better to create things like this in the load script (assuming that there is at least 1 record satisfying your if condition for 'ment') You could use a synthetic dimension e.g.

=ValueList('ment','Core','Cert')

You can reference the dimension in your calculating expression by repeating it e.g.

if(ValueList('ment','Core','Cert')='ment', MyCalcForMent, if(......


And in the dimension tab uncheck suppress null and in the presentation tab zero values.

alexandros17
Partner - Champion III
Partner - Champion III

Then Try This:

if(hold_1 = '043' or hold_2 = '043' or hold_3 = '043' or hold_4 = '043' or hold_5 = '043' or other= '043', 'ment', If(cd = 'DD' or cd = 'SV', 'Core', 'Cert'),'0000')

let me know