Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

pivot table data

Dear experts, i have my source excel data in below format;

A       B

a_1    X

a_1    Y

a_1    X

a_2    Y

a_2    Y

b_1    X

b_1    Y

b_2    X

b_2    Y

But i need to achieve the below table using a Qlikview pivot table

A       X     Y

a_1    2      1

a_2    0      2

b_1    1      1

b_2    1      1

how can i achieve this?

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Create Pivot

Dim as A

Expressions are

1) Count({<B = {'X'}>}A)

2) Count({<B = {'Y'}>}A)

And give labels as X and Y

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anil_Babu_Samineni

Create Pivot

Dim as A

Expressions are

1) Count({<B = {'X'}>}A)

2) Count({<B = {'Y'}>}A)

And give labels as X and Y

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

Why not add  two dimension

Dimension

A

B

Expression

Count(A) or Count(B)

Make sure to pivot Column B, by dragging the dimension to the top

Not applicable
Author

this solution worked...thanks a lot Anil, you are a life saver

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post).

If not, please make clear what part of this topic you still need help with .

May you live in interesting times!