Qlik Community

Community Corner

Discussion board for questions about the Qlik Community Platform as well as general discussions and even some fun. This is for both new and longtime community members. Everyone is welcome!

Announcements
IMPORTANT security patches for GeoAnalytics Server available to download: READ DETAILS
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
Partner

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
Partner

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))