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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Applicable88
Creator III
Creator III

mid and index chart function

Hello,

i have a script load here. 

Its referring to a column of  called "failure descriptions".

it can be a words like: 'bicycle repair', 'wheel air malfunctions..... but there are also values like serialnumbers which interest me the most (9999)1234, (9999)4321......and so fourth

like so:

Failure Description
wheel air
(9999)4324
(9999)4555

 

Now I see in the load script there is something like this:

mid([Failure Description],Index([Failure Description],')')+1 as ShelfID

Can someone telle me what it does? A Index function in a mid function? But what does that do with my data.

Thanks in advance!

 

1 Solution

Accepted Solutions
Taoufiq_Zarra

@Applicable88 

below a table with the initial value and the result of the mid ...

Taoufiq_ZARRA_0-1591359438656.png

the goal is to extract the string that comes just after the ')' ( so the use of the Index function).

if you notice we made a left joint before, to keep only ShelfID  that exist in Table 1.

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

1 Reply
Taoufiq_Zarra

@Applicable88 

below a table with the initial value and the result of the mid ...

Taoufiq_ZARRA_0-1591359438656.png

the goal is to extract the string that comes just after the ')' ( so the use of the Index function).

if you notice we made a left joint before, to keep only ShelfID  that exist in Table 1.

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉