Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

null values

Iam using below code in the script to tag all brands which has "Tdepartment" in it , along with this i  want eliminate null values

how do i include that in the below script .

if(WildMatch(VM_Model,'*Tdepartment*'),'Tdepartment Only') as Tdepart,


Thans in advance

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Or Can you do Suppress Null value from dimension and Presentation tab may be??

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

15 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

May be this would help you:

if(WildMatch(VM_Model,'*Tdepartment*') or Len(Trim(VM_Model)) = 0,'Tdepartment Only') as Tdepart,

Anil_Babu_Samineni

I didn't understand your intend here. You already written the text search so you have some values with that. What you mean to remove the null values over here. May be use with OR Operator any one of below

If(Len(Trim(VM_Model))>0,VM_Model)

or

If(Len(Purgechar(VM_Model, chr(32) & chr(160)))>0,VM_Model)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
neelamsaroha157
Specialist II
Specialist II

May be you can take resident of the table with a where condition: Where not isNull(Tdepart) or use this condition in precedence load.

smilingjohn
Specialist
Specialist
Author

Hi Anil,

I want to remove the null values  also here .

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

What do you mean by saying "remove"?

Do you need to remove them from your table or change null values to something?

smilingjohn
Specialist
Specialist
Author

Anil please find the attachment

here if you look i am getting a null, values also , i dont know why it is aapearing two time one with  Tdepartment Only

(iPerformance Only) and exactly below that its null ,

so i want to remove the null values ...

i hope you understand it now ... cap.PNG

Anil_Babu_Samineni

May be this? and operator consider as If condition full fills it will returns

if(WildMatch(VM_Model,'*Tdepartment*') and If(Len(Trim(VM_Model))>0,VM_Model),'Tdepartment Only') as Tdepart,

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Are both dimensions from the same table?

Might be something wrong with joins in your data model.

smilingjohn
Specialist
Specialist
Author

Anile i have kept you sugested script to run ( reloading )

can you please tell me what is this going to do ?