Forum Discussion
Anonymous
8 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
v-jiascu-msft
8 years agoMicrosoft Employee
Hi Anonymous,
There aren't any "AOD" in column Dados[COD_EQPMT]. That's why it's empty. You can see the result in the Data tab.
Please add more details or delete this condition.
Best Regards,
Dale
Anonymous
7 years agoNot applicable
Have in (Consulta2[COD_EQPMT_PRODC]) but Dados RELATED with Consulta1 . And Consulta1 RELATED with Consulta2 .
Consulta2 not RELATED with Dados.