Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
shanky1907
Creator II
Creator II

Length of a field

Hello all,

I want to use a calculated dimension on one of my chart. as if it contains no vlaue then there should be '-' otherwise the value itself.

I was using length function till now, but it cant help me.

Please help me with this.

Thanks in advance

8 Replies
Not applicable

Suppose mDimension is - for now

then If IsNull(mDimension) = 1   works better than comparing to "-"

Not applicable

and if your have a an IF condition, then IF (blalala, truevaluereturned, Null())

here Null() returns the representation of Nothing in the dimension, which is display by the symbol - by Qview by default.

shanky1907
Creator II
Creator II
Author

i used it with if condition as if(len('FieldName')=0,'-','FieldName'). But it doesnt work.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

These "no value" dimensions, are they Null values or Missing values?

-Rob

Anonymous
Not applicable

Hi,

If you want to filter by NULL values, use below code in the script like:

LOAD If(IsNull(FIELDNAME), '-', FIELDNAME) as FIELDNAME

....

From TableName;

Regards

Neetha

Not applicable

=IF (isNull(FieldName) = 1 , '-', FieldName)

shanky1907
Creator II
Creator II
Author

I want to change on the chart only...not in the script..

shanky1907
Creator II
Creator II
Author

These are null values.