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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

I require an inverted %

Hello

I have a % calculation which returns the value of 12.91%

 

num

((Count({<YEAR = {$(=Max(YEAR))}>}LOCAL_PATIENT_IDENTIFIER)/Count({<YEAR = {$(=Max(YEAR)-1)

However what I want to achieve is 100% - 12.91% so I get the value of 87.09%

Can anyone tell me how I can achieve this?

Thanks

Helen

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

I hope this might be your need.

1-

num((Count({<YEAR = {$(=Max(YEAR))}>}LOCAL_PATIENT_IDENTIFIER)/Count({<YEAR = {$(=Max(YEAR)-1)}>}LOCAL_PATIENT_IDENTIFIER)

View solution in original post

4 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

use

1 - num([Your Expression])

helen_pip
Creator III
Creator III
Author

Hello

Thank you for your response

I get a null value - when I tried this:

Have I written it correctly?

 

1-

num((Count({<YEAR = {$(=Max(YEAR))}>}LOCAL_PATIENT_IDENTIFIER)/Count({<YEAR = {$(=Max(YEAR)-1)

Thanks

Helen

CELAMBARASAN
Partner - Champion
Partner - Champion

I hope this might be your need.

1-

num((Count({<YEAR = {$(=Max(YEAR))}>}LOCAL_PATIENT_IDENTIFIER)/Count({<YEAR = {$(=Max(YEAR)-1)}>}LOCAL_PATIENT_IDENTIFIER)

helen_pip
Creator III
Creator III
Author

Thank you

This works for me

Helen