Forum Discussion
IF / COUNT IF
- 7 years ago
As the error message mentioned, the format of some columns like [@[ID SERVICIO]] is not number type, so they can not be used in comparision with 0, you should change the type from text to number or use value() function to convert them.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 7 years ago
You may use DAX function like FIND, SEARCH, PositionOf and Contains, you may refer to the text function in link below:
https://docs.microsoft.com/en-us/dax/find-function-dax
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
As the error message mentioned, the format of some columns like [@[ID SERVICIO]] is not number type, so they can not be used in comparision with 0, you should change the type from text to number or use value() function to convert them.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, perfect, thank you very much, I will review, on the other hand, ¿I'm using well the way to find part of the text and Count the data?
Example of correct names:
DEFAULT_HONDURAS,
ENLACE_DEFAULT_SV
MASIVO_HN
EQUIPO_MASIVO_SV
SV_ESC_HN_DEF001_HN
EXCEL:
=IF(AND(COUNTIF([@[ID SERVICIO]];"*DEFAULT*")=0;COUNTIF([@[ID SERVICIO]];"*MASIVO*")=0;COUNTIF([@[ID SERVICIO]];"*ESC_HN_DEF001*")=0;"VALIDO";
DAX:
- v-yuta-msft7 years agoCommunity Support
You may use DAX function like FIND, SEARCH, PositionOf and Contains, you may refer to the text function in link below:
https://docs.microsoft.com/en-us/dax/find-function-dax
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.