Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
javier1070
Contributor II
Contributor II

Problema dimensión calculada

Buenas tardes,

Estoy intentando hacer la siguiente dimensión calculada pero me genera un error, deseo saber si me pueden colaborar de verdad estaría muy agradecido.

if(desc_genero1= ('DESCGENERORow4'),

('DESCGENERORow2'), ('DESCGENERORow3'), ('DESCGENERORow0'), ('DESCGENERORow1') AND match desc_genero= ('Vacio'), ('DESCGENERORow0') AND VLR_RECAUDO <= ('40234'))

2 Replies
vishsaggi
Champion III
Champion III

May be this? you have conditions with two AND's what is that you want to display if they satisfy, so if conditions satisfied you want something to display right?

for ex: If(yourcondition true, value1, value2) something like that.

= if(Match(desc_genero1, 'DESCGENERORow4', 'DESCGENERORow2', 'DESCGENERORow3',      'DESCGENERORow0', 'DESCGENERORow1') AND

     Match(desc_genero,  'Vacio', 'DESCGENERORow0') AND VLR_RECAUDO <= 40234, Yourexpressions, YourExpr)

OR

= if(Match(desc_genero1, 'DESCGENERORow4', 'DESCGENERORow2', 'DESCGENERORow3',      'DESCGENERORow0', 'DESCGENERORow1') AND

     Match(desc_genero,  'Vacio', 'DESCGENERORow0') AND VLR_RECAUDO <= 40234, Yourexpression)

vinieme12
Champion III
Champion III

For calculated dimension you need to AGGR() the expression on  a keyfield that identifies each row/ group of data separately.


=AGGR(if(Match(desc_genero1, 'DESCGENERORow4', 'DESCGENERORow2', 'DESCGENERORow3',      'DESCGENERORow0', 'DESCGENERORow1')>0 AND

     Match (desc_genero, 'Void', 'DESCGENERORow0') AND VLR_RECAUDO <= 40234, Yourexpression)

,KEYFIELD)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.