Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to use Crosstable-function

Hello all,

Im trying to use the function Crosstable but I dont get it right. The attached picture shows my source and what im trying to acheive. It doesnt necesary need to be done with crosstable-function. (I dont want to do this in an object because I have to use it in other calculations in my script.)

All help and tips are appreciated.

BR

Cristian

1 Solution

Accepted Solutions
deepakk
Partner - Specialist III
Partner - Specialist III

6 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi ,

Use the below code.

Crosstable(Account , Value,1)

Load

Year,

Accoun_1,

Account_2

....... from table;

Not applicable
Author

Thanks for your help Deepak but this results in three columns - Year, Account, Value. I would like one column per year -> Account, Year1, Year2, Year3, Year4, Year5.

Bt

Cristian

deepakk
Partner - Specialist III
Partner - Specialist III

hi,

Now in pivot table add Account and Year in dimension and Value in Expression . then right click and expand all...

Drag the year to top of the value field. You will get the required output.

Not applicable
Author

Yes, but I dont want to solve this in an object. I already have it in an object. I need to solve in my script. Is it possible?

Br

Cristian

deepakk
Partner - Specialist III
Partner - Specialist III

hi Critian,

PFA

Not applicable
Author

Thank you! This works great!

Br

Cristian