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: 
Lena4
Contributor III
Contributor III

Generic Load Issues

Is there an alternative to Generic Load to unpivot data?  I've tried using a loop to join the tables after the fact, but Qlik keeps crashing, and just says that the process was 'aborted' with no other explanation. I do have a lot of data so that could be the issue

I ultimately want to get the data in one table so then I can merge another table for comparison of the values in each table at a given point in time. Here's an example of the data. 

 

Lena4_0-1747434712829.png

 

Labels (3)
1 Solution

Accepted Solutions
rubenmarin

Hi, you can try loading fewer values and check if something is working unexpectedly in the joining.

As a workaround I think in a script like:

NeedTable:
NoConcatenate
LOAD FieldValue('TimeStamp',RecNo()) as TimeStamp
AutoGenerate FieldValueCount('TimeStamp');

FOR vNumValue=1 to FieldValueCount('Location')
	LET vLocationValue = FieldValue('Location',$(vNumValue));
	
	Left Join (NeedTable)
	LOAD
		TimeStamp,
		Value as [$(vLocationValue)]
	Resident CurrentTable
	Where Location=$(vLocationValue);
NEXT	

DROP Table CurrentTable;

View solution in original post

2 Replies
rubenmarin

Hi, you can try loading fewer values and check if something is working unexpectedly in the joining.

As a workaround I think in a script like:

NeedTable:
NoConcatenate
LOAD FieldValue('TimeStamp',RecNo()) as TimeStamp
AutoGenerate FieldValueCount('TimeStamp');

FOR vNumValue=1 to FieldValueCount('Location')
	LET vLocationValue = FieldValue('Location',$(vNumValue));
	
	Left Join (NeedTable)
	LOAD
		TimeStamp,
		Value as [$(vLocationValue)]
	Resident CurrentTable
	Where Location=$(vLocationValue);
NEXT	

DROP Table CurrentTable;
Lena4
Contributor III
Contributor III
Author

Thanks, I'll give that a try