Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Rup10
Resolver I
Resolver I

Ayuda con el caso Switch

Hola

Tengo que añadir una columna personalizada llamada "difícil" mediante el uso de la siguiente caja de interruptor:

Caso

CUANDO array_contains(false_p_block_list, "Es) y array_contains(RV_pmnt_block_list, "Es) entonces'OFAC_B'

CUANDO array_contains(false_p_block_list, "Es) o array_contains(RV_pmnt_block_list, "Es) entonces'OFAC_S'

Final

¿Puede alguien por favor ayudarme en esto.

Gracias de antemano.

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Rup10 , Trate de medir como

Interruptor( true()
containsstring(false_p_block_list, "E") && containsstring(RV_pmnt_block_list, "E") y luego "OFAC_B",
containsstring(false_p_block_list, 'E') containsstring(RV_pmnt_block_list, "E") y luego "OFAC_S"
)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

PhilipTreacy
Super User
Super User

Hola @Rup10

¿Necesita agregar una columna calculada mediante DAX? Utilice este

Difficult = SWITCH( 
    
        TRUE(),

        CONTAINSSTRING(false_p_block_list, "E") && CONTAINSSTRING(RV_pmnt_block_list, "E"), "OFAC_B",

        CONTAINSSTRING(false_p_block_list, "E") || CONTAINSSTRING(RV_pmnt_block_list, "E"), "OFAC_S"

)

saludos

Phil


Si respondí a su pregunta por favor marque mi post como la solución.
Si mi respuesta ayudó a resolver su problema, déle un kudos haciendo clic en Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hola @Rup10

¿Necesita agregar una columna calculada mediante DAX? Utilice este

Difficult = SWITCH( 
    
        TRUE(),

        CONTAINSSTRING(false_p_block_list, "E") && CONTAINSSTRING(RV_pmnt_block_list, "E"), "OFAC_B",

        CONTAINSSTRING(false_p_block_list, "E") || CONTAINSSTRING(RV_pmnt_block_list, "E"), "OFAC_S"

)

saludos

Phil


Si respondí a su pregunta por favor marque mi post como la solución.
Si mi respuesta ayudó a resolver su problema, déle un kudos haciendo clic en Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hola @PhilipTreacy , @amitchandak

Muchas gracias por su ayuda. Funcionó.

HOLA @PhilipTreacy ,

Se muestra el siguiente error:

Rup10_0-1605857566972.png

Gracias.

amitchandak
Super User
Super User

@Rup10 , Trate de medir como

Interruptor( true()
containsstring(false_p_block_list, "E") && containsstring(RV_pmnt_block_list, "E") y luego "OFAC_B",
containsstring(false_p_block_list, 'E') containsstring(RV_pmnt_block_list, "E") y luego "OFAC_S"
)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors