Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hola
Necesito agregar dos condiciones a una instrucción CONTAINS STRING pero no funciona. Agradecería si alguien puede ayudar, por favor.
Se vería algo como esto
Solved! Go to Solution.
Hay @Carrhill ,
Pruebe esto en su lugar:
Output =
VAR _FindString01 = SEARCH("ABC", [Column1], 1, 0)
VAR _FindString02 = SEARCH("XYZ", [Column2], 1, 0)
RETURN IF(_FindString01 > 0 && _FindString02 > 0, "X", "Y")
Salida de ejemplo:
Podrias usar tambien
= IF(CONTAINSSTRING(('Tabla'[Columna],"A")||CONTAINSSTRING ('Tabla'[Columna],"B"),"Y", "Z" )
@Carrhill , Prueba como
Columna = IF( CONTAINSSTRING('Tabla '[Columna] "A") || CONTAINSSTRING ('Tabla'[Columna] "B") || CONTAINSSTRING ('Tabla'[Columna] "Y")|| CONTAINSSTRING ('Tabla'[Columna] "Z") )
Hola @amitchandak ,
¡Gracias! Has resuelto el problema planteado. Sin embargo, no fui del todo claro en mi pregunta.
Este es mi objetivo...
Si la columna 1 contiene "abc" y la columna 2 contiene "xyz", devuelva X, de lo contrario Y
¿Hay alguna manera de hacer esto? ¡Gracias por su ayuda!
Hay @Carrhill ,
Pruebe esto en su lugar:
Output =
VAR _FindString01 = SEARCH("ABC", [Column1], 1, 0)
VAR _FindString02 = SEARCH("XYZ", [Column2], 1, 0)
RETURN IF(_FindString01 > 0 && _FindString02 > 0, "X", "Y")
Salida de ejemplo:
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.