Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculating a rate

Hi,

I have had a slight mathematical block...  The attached file has 190 data entries which lists a 'Start Position' field of values I,N, S,

and a 'Outcome' field of 9 possibilities (values A-I)

I'm trying to display a bar chart for the Rate Outcomes of Start Position I but having no luck.  I need to show something like the following:

rate_of_outcomes.PNG

but when I attempt it in Qlikview each Outcome is at 100%

Any help appreciated.

Tom

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

I think it would be:

Dim: OUTCOME

Expr: count({<START_POSITION={'I'}>}OUTCOME) / count(TOTAL {<START_POSITION={'I'}>}OUTCOME)

-Rob

Edit: Forgot the fieldname!

View solution in original post

4 Replies
Not applicable
Author

can u share your expression

sunny_talwar
MVP
MVP

How would you calculate Rate Outcome of Start Position in your Excel file?

rwunderlich
MVP
MVP

I think it would be:

Dim: OUTCOME

Expr: count({<START_POSITION={'I'}>}OUTCOME) / count(TOTAL {<START_POSITION={'I'}>}OUTCOME)

-Rob

Edit: Forgot the fieldname!

Not applicable
Author

Perfect - exactly what I was looking for!

Many thanks!