# QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Rules, plus terms and conditions, can be found here.
Contributor

## Help creating matrix with Pivot/table

Dear Community,

i need help to achieve following table (vertical:A,horizontal,Values: count of S appear) :

with following data:

A_S:

A, S

1, 1

1, 2

1, 4

1, 4

1, 5

2, 1

3, 2

3, 2

4, 1

5, 1

];

Actually i only achieve this:

Horizontal 1 ... 5 are Expressions like if(S=1,COUNT(S)) ... if(S=5,COUNT(S))

I dont want to display the S Dimension, and want the counted results of S for A, so only one row and not broke up over all S possibilities.

Tags (3)
1 Solution

Accepted Solutions
Valued Contributor

## Re: Help creating matrix with Pivot/table

Hi Pauls,

1-. Use Pivot Chart.

2-. Create 2 dimensions: A and S

3-. Label Dimejnsion S is a space

4-. Create one Expresion: Count(S)

result:

In presentation Tab put Null Values to 0 or empty.

Regards,

8 Replies
Valued Contributor

## Re: Help creating matrix with Pivot/table

Hi Paul,

Maybe like this.

Regards

Esteemed Contributor

## Re: Help creating matrix with Pivot/table

Label for S is a space!

Andy

Contributor

Hi Jordi,

Contributor

## Re: Help creating matrix with Pivot/table

First picture was wrong,

should look like this:

Valued Contributor

## Re: Help creating matrix with Pivot/table

Hi Pauls,

1-. Use Pivot Chart.

2-. Create 2 dimensions: A and S

3-. Label Dimejnsion S is a space

4-. Create one Expresion: Count(S)

result:

In presentation Tab put Null Values to 0 or empty.

Regards,

MVP

## Re: Help creating matrix with Pivot/table

try like this

A_S:

LOAD *,S as S1 INLINE [

A, S

1, 1

1, 2

1, 4

1, 4

1, 5

2, 1

3, 2

3, 2

4, 1

5, 1

];

Dimension:

A,

S,

S1

drag the S1 horizontally

Expression: Count(S)

Contributor

## Re: Help creating matrix with Pivot/table

Great Jordi,

my problem was that I did not know how, that we can display a dimension also horizontal.

Thanks for help!

Valued Contributor

Welcome

Regards,