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

KPI Percentage with formula in denominator

Hello..

New to QlikSense and BI/Coding overall..

Trying to calculate a percentage based on the below (making it simple using the "1" in the numerator).

1/sum( {$<[Scope vs. Negotiated]= {"*Scope*"},[Manager Name]= {"*Christina*"}, [IL Status]= {"*5*","*4*","*3*","*2*","*1*"}>}[CY Savings 2020] )-sum( {$<[Manager Supplier]= {"*Christina*"}>}[2020 APV Supplier] )

Not sure how to make the percentage calculate properly as the formula within the denominator isn't taking the difference as I would expect, it is taking the second set analysis only and making it a negative number...? 

-sum( {$<[Manager Supplier]= {"*Christina*"}>}[2020 APV Supplier] )

Labels (1)
1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try after enclosing your denominator in brackets like below.

 

1/(sum( {$<[Scope vs. Negotiated]= {"*Scope*"},[Manager Name]= {"*Christina*"}, [IL Status]= {"*5*","*4*","*3*","*2*","*1*"}>}[CY Savings 2020] )-sum( {$<[Manager Supplier]= {"*Christina*"}>}[2020 APV Supplier] ))

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try after enclosing your denominator in brackets like below.

 

1/(sum( {$<[Scope vs. Negotiated]= {"*Scope*"},[Manager Name]= {"*Christina*"}, [IL Status]= {"*5*","*4*","*3*","*2*","*1*"}>}[CY Savings 2020] )-sum( {$<[Manager Supplier]= {"*Christina*"}>}[2020 APV Supplier] ))

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Bnm03080
Contributor II
Contributor II
Author

Thank you so much! 😃