Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
0li5a3a
Creator III
Creator III

If condition in load column

Hi,

I want to make a new column in my table.

table:

load 

     order_no,

     customer ref no,

     date

from xyz.qvd

My customer ref no column  contain information like :

1234568

abcdefg

321456

RMA:123456/0

RMA:abcdef/0

I want to make a column  what will contain just these customer ref no's information:

1234568

abcdefg

321456

Can I use IF condition to do this?

if(customer ref no = RMA:, ignore and go to next customer ref)

Could someone help me with my problem please.

Best Regards,

Constantin

1 Solution

Accepted Solutions
ankit777
Specialist
Specialist

if you want to do this for one column do this:

if(left([customer ref no],3) <> 'RMA',[customer ref no]) as column_name

View solution in original post

3 Replies
ankit777
Specialist
Specialist

Hi

try this in where condition:

left([customer ref no],3) <> 'RMA'

ankit777
Specialist
Specialist

if you want to do this for one column do this:

if(left([customer ref no],3) <> 'RMA',[customer ref no]) as column_name

0li5a3a
Creator III
Creator III
Author

Thanks for your answer. Is really helpful!