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: 
Anonymous
Not applicable

Data as column (Table)

Hello!

Is possible, turn some years as Columns?

I tried, but it failed.

Thanks !

17 Replies
Anonymous
Not applicable
Author

The problem is :

-I have only 1 field as Dimension : Year

I dont have another Field to use as "Customer". So, i cant use the actual expression as Dimension, because i have 2 distinct expressions.

MK_QSL
MVP
MVP

Let me have your expressions...

Anonymous
Not applicable
Author

=(count({<Segmento=(p ({$<Marca={'CHEVROLET'}>} Segmento))>}Numero_Chassis)/Below(count({<Segmento=(p ({$<Marca={'CHEVROLET'}>} Segmento))>}Numero_Chassis),-1))-1

=count(Numero_Chassis)/Below(count( Numero_Chassis),-1)-1

MK_QSL
MVP
MVP

have you got year field in your database?

tobias_klett
Partner - Creator II
Partner - Creator II

Hello
got to chart properties > presentation and mark "horizontal"

Anonymous
Not applicable
Author

Yes !

Any idea?

Anonymous
Not applicable
Author

Thank you !!!!

It worked !

MK_QSL
MVP
MVP

Create a Straight Table...

Don't keep any Dimension

Expression 1

=(count({<Year = {'$(=Max(Year))'},Segmento=(p ({$<Marca={'CHEVROLET'}>} Segmento))>}Numero_Chassis)/Below(count({<Year = {'$(=Max(Year))'},Segmento=(p ({$<Marca={'CHEVROLET'}>} Segmento))>}Numero_Chassis),-1))-1


=count({<Year = {'$(=Max(Year))'}>}Numero_Chassis)/Below(count({<Year = {'$(=Max(Year))'}>}Numero_Chassis),-1)-1



Same way use Year = {'$(=Max(Year)-1)'} and Year = {'$(=Max(Year)-2)'}