Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Billy_u
Creator
Creator

Qlik Usefull Functions

hi everyone,

I'm try to use the table functions to say turn the table itself automatically, but i have a problem with this function  that doesn't work,

thank you

hi

 

Cattura.JPG

 

 

 

 

 

 

 

 

 

 

 

 

Labels (1)
2 Solutions

Accepted Solutions
Vegar
MVP
MVP

Try

CROSSTABLE (Indicatore, MyPos3)
LOAD 
  'Placeholder' as Placeholder, 
   Periodo, 
   Passaggi,
   Passeggeri, 
   Destinazioni
FROM 
   LIB://ok/Transporti.csv (...);

DROP FIELD Placeholder;

View solution in original post

Vegar
MVP
MVP

If the year is important across the other dimensions then you could skip the placeholder.

CROSSTABLE (Indicatore, MyPos3)
LOAD
Periodo,
Passaggi,
Passeggeri,
Destinazioni
FROM
LIB://ok/Transporti.csv (...);

By this approach you could select period and get associated values.

View solution in original post

8 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Billy,

Please check the crosstable load in this link.

Jordy

Climber

Work smarter, not harder
Billy_u
Creator
Creator
Author

it is not very understandable, 

thank you for the request

JordyWegman
Partner - Master
Partner - Master

What is it that you want to create? Can you maybe show an image?

Jordy

Climber

Work smarter, not harder
Billy_u
Creator
Creator
Author

hi, i trust to clearly to explain

transform the table above in non manual way in the table below

the idea is here:

Cattura.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

JordyWegman
Partner - Master
Partner - Master

Hi Billy,

I don't know the exact statement, but you can also do this with the Data Manager: https://www.youtube.com/watch?v=D_03gU8GvK8

When you did this, go back to the script (check the 'locked' part) and get the script for unpivoting.

Jordy

Climber

Work smarter, not harder
Vegar
MVP
MVP

Try

CROSSTABLE (Indicatore, MyPos3)
LOAD 
  'Placeholder' as Placeholder, 
   Periodo, 
   Passaggi,
   Passeggeri, 
   Destinazioni
FROM 
   LIB://ok/Transporti.csv (...);

DROP FIELD Placeholder;
Billy_u
Creator
Creator
Author

thank you, this is good and clean, but i have another question:

is it possible to match the period? Adding a column for each record?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Vegar
MVP
MVP

If the year is important across the other dimensions then you could skip the placeholder.

CROSSTABLE (Indicatore, MyPos3)
LOAD
Periodo,
Passaggi,
Passeggeri,
Destinazioni
FROM
LIB://ok/Transporti.csv (...);

By this approach you could select period and get associated values.