Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with Pivot/Straight table

Hi -

I am trying to create a table in QlikView similar to the Excel pivot table below:

Times RepeatedTotal%
184476
220318
3474
4161
5+51

The issue I have is I am using the dimension EmployeeNo and using the following expression - Count(EmployeeNo) and an example of my results show as follows:

Employee NoTimes Repeated

1

8

27
36
46
56
64
74
84
94
104

How can I get the QlikView pivot table to show similar to the Excel - I have tried hiding the EmployeeNo to only show the Times Repeated but can not group the Times Repated totals to show 1,2,3,4,5+ and then get percentages like the excel pivot above.

Thanks.

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Your dimension will be:

=

if(aggr(Count(emp),emp)<5,aggr(Count(emp),emp),

'5+'

)

your expression:

count

(aggr(Count(emp),emp))

Hope it helps

View solution in original post

5 Replies
its_anandrjs

Hi,

I suggest you have to use group by function and plot the frequency of the Employee no.

Regards,

Anand

alexandros17
Partner - Champion III
Partner - Champion III

Your dimension will be:

=

if(aggr(Count(emp),emp)<5,aggr(Count(emp),emp),

'5+'

)

your expression:

count

(aggr(Count(emp),emp))

Hope it helps

Not applicable
Author

its_anandrjs

Hi,

Load data soe thing like below

Data :

load * inline

[

Employee No

1

1

1

1

1

1

1

1

2

2

2

2

2

2

2

3

3

3

3

3

3

4

4

4

4

4

4

5

5

5

5

5

5

6

6

6

6

7

7

7

7

8

8

8

8

9

9

9

9

10

10

10

10

];

LOAD

[Employee No],

Count([Employee No]) as Frequency

Resident Data Group by [Employee No];

DROP Table Data;

In Expresion

[Employee No]

and in Dimension

sum(Frequency)

Thanks & Best Regards,

   Anand

Not applicable
Author

Thank you was able to solve the issue with your help