Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to remove null string values in the expression?

Hi everyone,

I have created an expression =MaxString(Supplier) in my straight table but some of rows are blank.

If i used Supplier in the Dimension, I could use Suppress when value is Null  option but i want do the same in the expression.

I would be really grateful if you advise me how to fix this issue.

Best

Robert  

1 Solution

Accepted Solutions
senpradip007
Specialist III
Specialist III

PFA. Hope it will meet your requirement.

View solution in original post

12 Replies
PrashantSangle

Hi,

Use isnull()

like

if(not isnull(Supplier),MaxString(Supplier))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable
Author

Robert,

Try to use a calculated dimension:

=if(len(Suplier)>0, Suplier)

and check Supress when value is null.

Marc.

alexandros17
Partner - Champion III
Partner - Champion III

Try something like:

If(Trim(MaxString(Supplier))='',0,MaxString(Supplier))


then check suppress zero value in presentation tab


let me know ...

Gysbert_Wassenaar

If the values were really nulls then Suppress When Value is Null would suppress them. Nulls cannot be selected, so if you can select such a value you know it's not a real null. You can replace the spaces with something else in the script. You can check for such values with something like if(len(trim(MyField))=0, 'No Value', MyField) as MyField.


talk is cheap, supply exceeds demand
anbu1984
Master III
Master III

Check this qvw

Not applicable
Author

Hello everyone,

Thanks for your reply.

I just used the Mr.Anbu Sample qvw file, he given my expected answer but now i added one more attribute(Target) in the data and added sum(Target) expression in table then i want to remove the null value of supplier So, i tried your advised way but it doesn't work.

Remove null value.png

I want to remove the red color marked data and attached the Mr.Anbu qvw file.

senpradip007
Specialist III
Specialist III

PFA. Hope it will meet your requirement.

anbu1984
Master III
Master III

Check this

Not applicable
Author

Its works.

Thanks everyone....

Many Thanks Mr.Anbu and Mr.Pradip.