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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
david_pearson
Contributor III
Contributor III

sum two count set expressions together

Hi,

im struggling to get the following to add together. for the first count expression i get 3 and the other i get 2 if i try them individually. i want them to be added together to show 5

where am i going wrong?

if($(vNBRNL)=2,

count({<RISK_TYPE={'RENEWAL'}, COMP_STATUS={'Incomplete'}>}RISK_ID)+
count({<RISK_TYPE={'BACK_LOADED'}, DUE_TO_RENEW-={'Expired'}>}RISK_ID))

thanks 

Labels (1)
1 Solution

Accepted Solutions
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

try to put if inside of each expression

count({<RISK_TYPE={'RENEWAL'}, COMP_STATUS={'Incomplete'}>} if($(vNBRNL)=2, RISK_ID))+
count({<RISK_TYPE={'BACK_LOADED'}, DUE_TO_RENEW-={'Expired'}>} if($(vNBRNL)=2, RISK_ID))

View solution in original post

1 Reply
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

try to put if inside of each expression

count({<RISK_TYPE={'RENEWAL'}, COMP_STATUS={'Incomplete'}>} if($(vNBRNL)=2, RISK_ID))+
count({<RISK_TYPE={'BACK_LOADED'}, DUE_TO_RENEW-={'Expired'}>} if($(vNBRNL)=2, RISK_ID))