Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
kkarlste
Creator
Creator

if skript

Hi

How should this be written?

// dimension

if (column) third mark is 1 is '3319' and if (column) third mark is 5 is '3317'

1 Solution

Accepted Solutions
sewialwork
Partner - Contributor III
Partner - Contributor III

Try this:

If(mid([column],3,1) = '1','3319', if(mid([column],3,1) = '5','3317'))

AGB

View solution in original post

4 Replies
shraddha_g
Partner - Master III
Partner - Master III

If ( Field1 = '1','3319',

     if(Field1 = '5','3317'))

sewialwork
Partner - Contributor III
Partner - Contributor III

Try this:

If(mid([column],3,1) = '1','3319', if(mid([column],3,1) = '5','3317'))

AGB

kkarlste
Creator
Creator
Author

but if field1 = '001' and i must know third mark is = '1'?

                        

If ( Field1 = '1','3319',

     if(Field1 = '5','3317'))

kkarlste
Creator
Creator
Author

Hi

have you any ideas this calculation dimension

how the script goes

if field1 = ('1','10) sum (field2 /0,85) otherwise take (field3)

if field4 = ('9225', '9153', '9161', '9122', '9104') field1 = ('1','10) sum (field2 / 0,9) otherwise take (field3)