Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Group on 2nd Dimension in Data table

Hi,

Can anyone help me in grouping data on 2nd dimension to calculate contribution %..

I am not able to calculate contribution of "Category 1 & month April"  in Apr month in a Pivot table.

When I put Total function in expression, I get contribution of "Category 1" in entire data table.

I am able to do it on excel but not able to do on QV, please help me with Expression or any other way of doing it.

My table looks like - I have attached excel file also where I am able to calculate the contribution.

MonthCategoryCount
AprCategory 14
AprCategory 216
AprCategory 313
AprCategory 440
AprCategory 56
AprCategory 69
AprCategory 712
MayCategory 125
MayCategory 263
MayCategory 388
MayCategory 4110
MayCategory 54
MayCategory 673
MayCategory 729
JunCategory 111
JunCategory 22
JunCategory 3137
JunCategory 4282
JunCategory 5354
JunCategory 617
JunCategory 7219

Thanks,

Narsingh

1 Solution

Accepted Solutions
joshabbott
Creator III
Creator III

7 Replies
joshabbott
Creator III
Creator III

Try this:

=sum(Count)/sum(TOTAL <Month> Count)

Attaching sample

ecolomer
Master II
Master II

See the fila attached

Not applicable
Author

Thanks Josh & Enrique for you prompt responses!!

Sorry that I couldn't explain my problem correctly.

Excel which I sent, that is output of a QV pivot, In my data I have dates instead of Month and Categories are given but not count.

I am not able to use this formula because of dates and I want this pivot "Month wise".

Please help... Sample data is attached

Thanks,

Narsingh

joshabbott
Creator III
Creator III

Instead of the sum I supplied above, just use a 'Count'

=Count(Category)/count(Total <Category> Category)

joshabbott
Creator III
Creator III

example attached

Not applicable
Author

Thanks Josh, Now I able to calculate!!!

This helped a lot

ecolomer
Master II
Master II

See the new file attached ...