Forum Discussion
Anonymous
7 years agoNot applicable
Logical Conditions
Hi, i need some logical conditions, but i don't know hot to make it (syntax). I need > IF (Dados[NOM_ABERV]) = "304" and (Dados[COD_EQPMT]) ="AOD" and RELATED(Consulta1[COD_TIPO_PRCES])=" F-F ...
- 7 years ago
Hi Anonymous,
Try this formula, please.
Column 1 = VAR COD_TIPO_PRCES = RELATED ( Consulta1[COD_TIPO_PRCES] ) VAR c = RELATED ( Consulta1[C] ) RETURN IF ( Dados[NOM_ABREV] = "304" && CALCULATE(min('Consulta2'[COD_EQPMT_PRODC])) = "AOD" , SWITCH ( TRUE (), COD_TIPO_PRCES = "F-F" && ( c < 3.5 || c > 7 ), "not", COD_TIPO_PRCES = "F-P" && ( c < 4 || c > 7 ), "not", "yes" ), BLANK() )Best Regards,
Dale
Anonymous
7 years agoNot applicable
It's working, thanks.
You helped me a lot.
But as I do add more Dados[NOM_ABREV] = "305" Dados[NOM_ABREV] = "306" Dados[NOM_ABREV] = "307" up to 320.
And each "304" "305" "306" "307" has different specifications
Anonymous
7 years agoNot applicable
I got it