8 Replies Latest reply: Jul 29, 2015 5:21 AM by Jordi Arenas Grau

# Help creating matrix with Pivot/table

Dear Community,

i need help to achieve following table (vertical:A,horizontal:S,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.

• ###### Re: Help creating matrix with Pivot/table

Hi Paul,

Maybe like this.

Regards

• ###### Re: Help creating matrix with Pivot/table

Label for S is a space!

Andy

• ###### Re: Help creating matrix with Pivot/table

Hi Jordi,

• ###### 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,

• ###### 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!

• ###### Re: Help creating matrix with Pivot/table

Welcome

Regards,

• ###### Re: Help creating matrix with Pivot/table

First picture was wrong,

should look like this:

• ###### 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)