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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

No one answer yet ?

if(index(Code, ' '), concat(left(Test, 1) & '(' & len(Test) & ')', ' ', Row), concat(left(Test, 1) & '(' & len(Test) & ')', '-', Row)) as Test2

Labels (1)
3 Replies
Not applicable
Author

not sure why this expression is used. It checks for space in the Code field, if space presents then first letter of Test field and length of test field.

Eg: if Code = 'Country' and Test='India' then result would be

I(5)-

this will be repeated for total nyumber of occurences of India in data.

If India exists 5 times

I(5)-I(5)-I(5)-I(5)-I(5)

Peter_Cammaert
Partner - Champion III
Partner - Champion III

What exactly was your question?

Not applicable
Author

explination of above expression how it works