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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
CHAUHAN7
Contributor
Contributor

Expression error

For the following expression I am getting error stating Garbage after expression: ' if ' , how do I rectify this.

 

if(DQ = 'Total number of people (Own)',if(sum([Total No of Personnel ( including FTE of Agency/ 3rd party ...)])=0,'Check',
if(sum([Total No of Personnel ( including FTE of Agency/ 3rd party ...)]) = sum([All other warehousing personnel who are not included in the above process catagories.]+
[Number of Site SCM FTEs (site head SCM, planners, masterdata, LCM, customer service,...)]+
[Number of people per day (24hrs)-COMMISSIONING]+
[Number of people per day (24hrs)-OUTBOUND]+
[Number of people per day (24hrs)-DISPENSING]+
[Number of people per day (24hrs)-INTRA / PRODUCTION LOGISTICS]+
[Number of people per day (24hrs)-INBOUND]+
[Total number of people per day (24hrs) Manual warehouses]),'Ideal')),'Check')

 

2 Replies
Yoshidaqlik
Creator II
Creator II

Hi,

apparently the syntax is correct.

Try checking the sum formulas separately within another KPI to see if the error is in any of them.

I'll paste the formula with identification just to make it easier to read ^^

if(
	DQ = 'Total number of people (Own)',
	if(
		sum([Total No of Personnel ( including FTE of Agency/ 3rd party ...)])=0,
		'Check',
		if(
			sum([Total No of Personnel ( including FTE of Agency/ 3rd party ...)]) 
			= 
			sum(
				[All other warehousing personnel who are not included in the above process catagories.]+
				[Number of Site SCM FTEs (site head SCM, planners, masterdata, LCM, customer service,...)]+
				[Number of people per day (24hrs)-COMMISSIONING]+
				[Number of people per day (24hrs)-OUTBOUND]+
				[Number of people per day (24hrs)-DISPENSING]+
				[Number of people per day (24hrs)-INTRA / PRODUCTION LOGISTICS]+
				[Number of people per day (24hrs)-INBOUND]+
				[Total number of people per day (24hrs) Manual warehouses]
			),
			'Ideal'
		)
	),
	'Check'
)

Regards

 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
CHAUHAN7
Contributor
Contributor
Author

Thanks