If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
Hello Qlik community,
Can you please help figure out where is the error in this text color expression?
if(Sum(Aggr(count(distinct {$<[PRATICHE.CONSENSO_L1_MKT]={'KO'}>}[PRATICHE.CODICE_OPPORTUNITY_LI]),[PRATICHE.CANALE_ACQ_CONTRATTO],[PRATICHE.CONSENSO_L1_MKT],[PRATICHE.SOTTOCANALE]))) /
Aggr(count(distinct TOTAL<[PRATICHE.SOTTOCANALE]>[PRATICHE.CODICE_OPPORTUNITY_LI]),[PRATICHE.CANALE_ACQ_CONTRATTO],[PRATICHE.CONSENSO_L1_MKT],[PRATICHE.SOTTOCANALE]) > 0.50,red(),
if(Sum(Aggr(count(distinct {$<[PRATICHE.CONSENSO_L1_MKT]={'KO'}>}[PRATICHE.CODICE_OPPORTUNITY_LI]),[PRATICHE.CANALE_ACQ_CONTRATTO],[PRATICHE.CONSENSO_L1_MKT],[PRATICHE.SOTTOCANALE]))) /
Aggr(count(distinct TOTAL<[PRATICHE.SOTTOCANALE]>[PRATICHE.CODICE_OPPORTUNITY_LI]),[PRATICHE.CANALE_ACQ_CONTRATTO],[PRATICHE.CONSENSO_L1_MKT],[PRATICHE.SOTTOCANALE]) <= 0.50,green()
Thanks in advance
closing brackets are missing.
try below one
if(
(Sum(Aggr(count(distinct {$<[PRATICHE.CONSENSO_L1_MKT]={'KO'}>}[PRATICHE.CODICE_OPPORTUNITY_LI]),[PRATICHE.CANALE_ACQ_CONTRATTO],[PRATICHE.CONSENSO_L1_MKT],[PRATICHE.SOTTOCANALE]))
/
Aggr(count(distinct TOTAL<[PRATICHE.SOTTOCANALE]>[PRATICHE.CODICE_OPPORTUNITY_LI]),[PRATICHE.CANALE_ACQ_CONTRATTO],[PRATICHE.CONSENSO_L1_MKT],[PRATICHE.SOTTOCANALE])) > 0.50,red(),
green()
)
Hello Gio92,
Based on the reported expression, could you please provide a sample app to help you investigate in depth what error you are encountering while using it ?
Thank you!!
closing brackets are missing.
try below one
if(
(Sum(Aggr(count(distinct {$<[PRATICHE.CONSENSO_L1_MKT]={'KO'}>}[PRATICHE.CODICE_OPPORTUNITY_LI]),[PRATICHE.CANALE_ACQ_CONTRATTO],[PRATICHE.CONSENSO_L1_MKT],[PRATICHE.SOTTOCANALE]))
/
Aggr(count(distinct TOTAL<[PRATICHE.SOTTOCANALE]>[PRATICHE.CODICE_OPPORTUNITY_LI]),[PRATICHE.CANALE_ACQ_CONTRATTO],[PRATICHE.CONSENSO_L1_MKT],[PRATICHE.SOTTOCANALE])) > 0.50,red(),
green()
)
Thanks