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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
gowrishankarangrybird
Contributor II
Contributor II

How to convert  to Qlik Sense Expression from Tableau Calculation Field ?

How to convert  to Tableau Calculation Field  to Qlik Sense Expression from?

Below Expression not working in Qlik Sense . How to  Write ?

IF CONTAINS([AppsLate], " ICA") THEN
MID([AppsLate],FIND([AppsLate], " ICA"))
ELSEIF CONTAINS([AppsLate], ".ICA") THEN
MID([AppsLate],FIND([AppsLate], ".ICA"))
ELSEIF CONTAINS([AppsLate], CHAR(10)+"ICA") THEN
MID([AppsLate],FIND([AppsLate], CHAR(10)+"ICA")) END

 

Thanks in Advance

 

 

1 Solution

Accepted Solutions
gowrishankarangrybird
Contributor II
Contributor II
Author

Worked with below expression 

 

=iF (SubStringCount (AppsLate, 'ICA'),
mid( [AppsLateR], index( [AppsLate], 'ICA')),

IF(SubStringCount ([AppsLate], '.ICA'),
mid( [AppsLate], index( [AppsLate], '.ICA')),

if(SubStringCount ([AppsLate],'ICA'),
mid( [AppsLate], index( [AppsLate], 'ICA')))))

View solution in original post

3 Replies
MendyS
Partner - Creator III
Partner - Creator III

Hi @gowrishankarangrybird 

if I got you correct, did you try to convert from Tableau to Qlik formula?

is it is,  so try this - 


IF (Match ([AppsLate], " ICA"),

mid( [AppsLate], index( [AppsLate], "ICA")),

IF(Match ([AppsLate], ".ICA"),
mid( [AppsLate], index( [AppsLate], ".ICA")),

if(Match ([AppsLate]," ICA"),
mid( [AppsLate], index( [AppsLate], " ICA"))))


I try to convert for you the functions, but I am not sure - what you try to do - let me know the purpose and I give the exact formula, 
Thanks

Mark_Little
Luminary
Luminary

Hi @gowrishankarangrybird 

For a start the If statement is syntax should be

If('Argument' , True,  False) Then and else are just comma's, If can be nested.

Contain would need to be wildmatch()

gowrishankarangrybird
Contributor II
Contributor II
Author

Worked with below expression 

 

=iF (SubStringCount (AppsLate, 'ICA'),
mid( [AppsLateR], index( [AppsLate], 'ICA')),

IF(SubStringCount ([AppsLate], '.ICA'),
mid( [AppsLate], index( [AppsLate], '.ICA')),

if(SubStringCount ([AppsLate],'ICA'),
mid( [AppsLate], index( [AppsLate], 'ICA')))))