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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data loading problem

Hi,

I have a data loading problem from oracle. I have suche datas :

IDPERS TYPE YEAR

1 A 2003

1 C 2003

2 E 2001

2 A 2003

I want to have in QV :

1 AC 2003 (2 oracle lines becomes 1, concatenating the two types of the same year)

2 E 2001

2 A 2003

I can't find a way with the SQL request, do you have any idea in QV script ?

Thanks,

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

You could use the concat function:

LOAD
IDPERS,
YEAR,
CONCAT(TYPE,'') as TYPE
GROUP BY IDPERS, YEAR;
LOAD * INLINE [
IDPERS,TYPE,YEAR
1,A,2003
1,C,2003
2,E,2001
2,A,2003];

/Michael

View solution in original post

4 Replies
Not applicable
Author

You could use the concat function:

LOAD
IDPERS,
YEAR,
CONCAT(TYPE,'') as TYPE
GROUP BY IDPERS, YEAR;
LOAD * INLINE [
IDPERS,TYPE,YEAR
1,A,2003
1,C,2003
2,E,2001
2,A,2003];

/Michael

Not applicable
Author

I get an invalid expression with that solution, I don't think we can use concat in such case.

Not applicable
Author

The above code works for me with your requested result in an empty application. Don't know why you get an error with it.

/Michael

Not applicable
Author

Yes you are right it's ok now. Sorry and thanks.