Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Estoy tratando de seleccionar varios valores dentro de un texto y escribir mulitple ifs dentro de una columna algo como esto..
pero esto no funciona cómo hago esto
si ([ACCOUNTNUM] - "B30001,B34123" y [Importe]>0 entonces "Reversión"
si[ACCOUNTNUM] á "B30002,B12323" y [Importe]>0 y, a continuación, "Liberar"
otra cosa "Acumulación"
Por favor, intente
Switch (true(),
[ACCOUNTNUM] in { "B30001","B34123"} && [Amount]>0 , "Reversal" ,
[ACCOUNTNUM] in {"B30002","B12323"} && [Amount]>0 , "Release",
"Accrual"
)
Hola @valerial
Pruebe las columnas a continuación:
Column =
IF (
[ACCOUNTNUM]
IN {
"B30001",
"B34123"
}
&& [Amount] > 0,
"Reversal",
IF (
[ACCOUNTNUM]
IN {
"B30002",
"B12323"
}
&& [Amount] > 0,
"Release",
"Accrual"
)
)
Saludos
Maggie
Equipo de Apoyo Comunitario _ Maggie Li
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Hola Maggie,
Su solución mostró un error en el
Hola @valerial
No veo el nombre de la columna a la izquierda de la "a", debería estar ahí.
también, necesita agregar uno más ")" al final de la fórmula.
Saludos
Maggie
Maggie, ¡tenía un error tipográfico tonto! funciona gracias!
Hola Maggie. Ahora tengo este problema anterior.
El código tiene que ser muy explícito con la prueba lógica
Si yo fuera usted, conseguiría que el bit de código de cuenta funcione primero y luego presentaría la prueba de saldo.
¿Es una prueba 'OR'?
if ([ACCOUNTNUM] = “B30001" OR [ACCOUNTNUM] = "B34123” ,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.