Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
dandaanilreddy
Partner - Creator III
Partner - Creator III

if condition

Hello Qlik developers

I have 2 expressions i need to show the percentage if expression sum(actual) is greater than sum(company plan) the goal should be 100% if not it should display the percentage.

Can some one help me please

Thanks

Anil

13 Replies
dandaanilreddy
Partner - Creator III
Partner - Creator III
Author

Hi Jason

Thanks for the reply. I have applied your expression but the result is same what i have achieved from sunny's expression. If actual is greater than company plan the goal should be 100%.

Thanks

Anil

jcampbell474
Creator III
Creator III

Sunny's expression probably encompasses more scenarios than mine, but both of them should work in the example you provided.

Using one row/record, give us an example of the value in these fields:

UnitActuals.ReceivedCasesFromProc: (what is your value)

UnitActuals.BudgetedCases: (what is your value)

dandaanilreddy
Partner - Creator III
Partner - Creator III
Author

In the above screen shot for Jan 2015 the company plan target is 19365 but we have achieved actuals more than company plan then the goal result should be 100% instead of 4.62%

Thanks

Anil

dandaanilreddy
Partner - Creator III
Partner - Creator III
Author

I have deleted the expression and recreated it. It's working now thanks.

Thanks

Anil