Discussion Board for collaboration on QlikView Scripting.
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?
Use show all values in ìdimension tab but ... have you added an expression in your chart?
any chance that you could upload your QVW please?
Yes there are many expressions. And the 'show all values' selection is grayed out for this dimension
Uncheck "Supress Zero Values" at Presentation tab
Then uncheck "suppress zero values" in presentation tab
Unfortunately I have tried this and it does not work
Also, changes nothing in what I am looking for unfortunately.
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.
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.
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