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
7 years agoMicrosoft Employee
Hi Anonymous,
This link needs permission. I have clicked Request. Please kindly approve. It's dalet****@gmail.com.
Best Regards,
Dale
v-jiascu-msft
7 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
- v-jiascu-msft7 years agoMicrosoft Employee
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
- Anonymous7 years agoNot applicable
I got it
- Anonymous7 years agoNot applicable
Have in (Consulta2[COD_EQPMT_PRODC]) but Dados RELATED with Consulta1 . And Consulta1 RELATED with Consulta2 .
Consulta2 not RELATED with Dados.
- Anonymous7 years agoNot applicableIt'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