Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can i work out % of a group within a group?

Can anyone help??

I have data in a table:

TotalAB
TotalxyTotalxy
Total291221017107
Group 117927853
Group 2123-3954

I can create a table showing the % of groups A & B as:

TotalAB
TotalxyTotalxy
Total100%17%83%100%59%41%
Group 175%17%58%47%29%18%
Group 225%-25%53%29%24%

Using an expression

count( "variable")/count(total <"Name for A & B variable"> "variable")


I want to work out the %, so I get a table like this, showing the % within each column:

TotalAB
TotalxyTotalxy
Total100%100%100%100%100%100%
Group 175%100%70%47%50%43%
Group 225%0%30%53%50%57%
1 Solution

Accepted Solutions
Not applicable
Author

try to modify your expression to be like:

count( "variable")/count(total <"Name for A & B variable", "Name for x & y variable"> "variable")

View solution in original post

1 Reply
Not applicable
Author

try to modify your expression to be like:

count( "variable")/count(total <"Name for A & B variable", "Name for x & y variable"> "variable")