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

Error in expression help!

Hi guys,

Can someone help me with the following expression as I am getting a ')' expected result.

PostCode&' - '&if(count({<AgeGroup={"0-14"}>} DISTINCT PID)>10,'Over '&count({<AgeGroup={"0-14"}>} DISTINCT PID)&' Employees',Concat(Employee Name,' | '))&' - (Age Group 0-14: '&sum({<AgeGroup={"0-14"}>} Population)&')'

Thank

3 Replies
sushil353
Master II
Master II

Try this:

=PostCode&' - '&if(count({<AgeGroup={"0-14"}>} DISTINCT PID)>10,'Over '&count({<AgeGroup={"0-14"}>} DISTINCT PID)&' Employees',Concat(Employee Name,' | '))&' - '&'(Age Group 0-14: '&sum({<AgeGroup={"0-14"}>} Population)&')'

HTH

Chanty4u
MVP
MVP

missing her   give one more brace

Over '&count(({<AgeGroup={"0-14"}>} DISTINCT PID)&

sunny_talwar

May be this:

PostCode & ' - ' &


(If(Count({<AgeGroup={"0-14"}>} DISTINCT PID) > 10,


('Over ' & Count({<AgeGroup={"0-14"}>} DISTINCT PID) &' Employees'),


Concat(Employee Name,' | ')))


& ' - (Age Group 0-14: ' & Sum({<AgeGroup={"0-14"}>} Population) & ')'