Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
anavin33
New Contributor II

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

Re: Dimension not displaying

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

awhitfield
Esteemed Contributor

Re: Dimension not displaying

Hi Ashley,

any chance that you could upload your QVW please?

Andy

anavin33
New Contributor II

Re: Dimension not displaying

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

Employee
Employee

Re: Dimension not displaying

Uncheck "Supress Zero Values" at Presentation tab

Re: Dimension not displaying

Then uncheck "suppress zero values" in presentation tab

anavin33
New Contributor II

Re: Dimension not displaying

Unfortunately I have tried this and it does not work

anavin33
New Contributor II

Re: Dimension not displaying

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

stigchel
Honored Contributor

Re: Dimension not displaying

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.

Re: Dimension not displaying

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

Community Browser