Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikview979
Specialist
Specialist

If condition

Hi Experts,

I Have Source files like this

 

IDNAMENUMBER
1AB11
2BC81
3CD74
4EF16
5GH12

here  NUMBER is 11 i want  'REC' in NAME column.

1 Solution

Accepted Solutions
Anonymous
Not applicable

load

ID,

if (NUMBER=11,'REC',NAME) as NAME,

NUMBER

from

View solution in original post

9 Replies
Not applicable

Hi Mahesh,

I don't understand what you are looking for?

qlikview979
Specialist
Specialist
Author

HI,

Where ever 11 is having  NUMBER field  i want "REC" in "NAME field.

Anonymous
Not applicable

load

ID,

if (NUMBER=11,'REC',NAME) as NAME,

NUMBER

from

trdandamudi
Master II
Master II

May be this:

Source_Table:

Load * Inline [

ID, NAME, NUMBER

1, AB, 11

2, BC, 81

3, CD, 74

4, EF, 16

5, GH, 12

];

NoConcatenate

Final:

Load

ID,

IF(NUMBER=11,'REC',NAME) as NAME,

NUMBER

Resident Source_Table;

Drop Table Source_Table;

MK_QSL
MVP
MVP

Load

     ID,

     IF(NUMBER = 11, 'REC', NAME) as NAME,

     NUMBER

From YourTable;

Kushal_Chawda

If (match(Number,'11'),'REC',NAME) as Name

Not applicable

LOAD

     ID                                             as [ID],

     if(NUMBER=11,'REC',NAME)     as [NAME],

     NUMBER                                   as [NUMBER]

FROM (yourfile)

Chanty4u
MVP
MVP

try this

If(Match(Number,'11'),'Rec',Name)  as New

qlikview979
Specialist
Specialist
Author

Hi,

Thanks Every one,