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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
raji6763
Creator II
Creator II

how to populate the field values according previous field value

hi ,

i want  to populate the field values according previous field value

 

1key1
1 
Raju 
1 
2key2
2 
cbe 
2 
3key3
3 
3 
3 

 

expected output:

 
 

Capture.JPG

 

 

 

 

 

thanks

 

 
 

 

1 Solution

Accepted Solutions
tresesco
MVP
MVP

This?

Load fieldvalue,
	if(len(trim(Key))=0, peek(Key), Key) as Key
Inline [
fieldvalue, Key
1, key1
1, 
Raju, 
1, 
2, key2
2, 
cbe,
2,]

tresesco_0-1593169189815.png

 

View solution in original post

10 Replies
brunobertels
Master
Master

 

add this in your script 

 

if(len(trim(Key1))>0,Key1,peek(Key1)) as Key1 

raji6763
Creator II
Creator II
Author

raji6763_0-1593167869358.png

 

i can see the field vales in next column only. i want to populate fully

tresesco
MVP
MVP

This?

Load fieldvalue,
	if(len(trim(Key))=0, peek(Key), Key) as Key
Inline [
fieldvalue, Key
1, key1
1, 
Raju, 
1, 
2, key2
2, 
cbe,
2,]

tresesco_0-1593169189815.png

 

raji6763
Creator II
Creator II
Author

@tresesco  please find attached file

tresesco
MVP
MVP

Output table is missing in the attachment. Try to include that and re-attach. Also, comment/like/close this thread requirement.

raji6763
Creator II
Creator II
Author

raji6763_0-1593174693801.png

 

tresesco
MVP
MVP

Rajib,

This is probably a case of generic database, however in your sample case there is missing a association KEY. That means, name, address and age values are fine, but there is no link/association link. For ex, how can you say that Raju's address is 'cbe' and age is '12' ? why not 'try' and '14' respectively?

 

Hope I could make it clear.  

raji6763
Creator II
Creator II
Author

 

how to convert this into below output:

 

raji6763_1-1593179038766.png

 

output:

raji6763_2-1593179068531.png