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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rogerdea
Helper IV
Helper IV

SUMX, FILTER y el uso de múltiples quirófanos

He estado buscando durante años aquí, pero no he encontrado una solución todavía, así que también puede preguntar...

Estoy tratando de poner una medida filtrando varias piezas de información. Actualmente funciona lo siguiente, pero también necesito filtrar por lo siguiente además de "VEH"

  • Blanco
  • Null

Launches (Other) = SUMX(FILTER('LSAR/SAPData', 'LSAR/SAPData'[Lifeboat_Type] = "VEH"), 'LSAR/SAPData'[Launched])

¿Cómo puedo adaptar esto para que devuelva un valor cuando se encuentra cualquiera de los tres valores? Blank y Null buscan registros sin valores. "VEH" es una cadena específica.

Gracias

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rogerdea , Pruebe una de las siguientes

Launches (Otros) á SUMX(FILTER('LSAR/SAPData', 'LSAR/SAPData'[Lifeboat_Type] á "VEH" á isblank('LSAR/SAPData'[Lifeboat_Type] )), 'LSAR/SAPData'[Launched])

Launches (Otros) á SUMX(FILTER('LSAR/SAPData', 'LSAR/SAPData'[Lifeboat_Type] á "VEH" á not('LSAR/SAPData'[Lifeboat_Type] ))), 'LSAR/SAPData'[Lanzado])

Launches (Otros) á SUMX(FILTER('LSAR/SAPData', 'LSAR/SAPData'[Lifeboat_Type] á "VEH" && not(isblank('LSAR/SAPData'[Lifeboat_Type] ))), 'LSAR/SAPData'[Lanzado])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@rogerdea , Pruebe una de las siguientes

Launches (Otros) á SUMX(FILTER('LSAR/SAPData', 'LSAR/SAPData'[Lifeboat_Type] á "VEH" á isblank('LSAR/SAPData'[Lifeboat_Type] )), 'LSAR/SAPData'[Launched])

Launches (Otros) á SUMX(FILTER('LSAR/SAPData', 'LSAR/SAPData'[Lifeboat_Type] á "VEH" á not('LSAR/SAPData'[Lifeboat_Type] ))), 'LSAR/SAPData'[Lanzado])

Launches (Otros) á SUMX(FILTER('LSAR/SAPData', 'LSAR/SAPData'[Lifeboat_Type] á "VEH" && not(isblank('LSAR/SAPData'[Lifeboat_Type] ))), 'LSAR/SAPData'[Lanzado])

AlB
Super User
Super User

No @rogerdea

Launches (Other) =
SUMX (
    FILTER ( 'LSAR/SAPData', 'LSAR/SAPData'[Lifeboat_Type] IN { "VEH", BLANK () } ),
    'LSAR/SAPData'[Launched]
)

¿Qué quieres decir exactamente con null, igual que BLANK o algo más?

Por favor, marque la pregunta resuelta cuando haya terminado y considere dar un pulgar hacia arriba si las publicaciones son útiles.

Póngase en contacto conmigo de forma privada para obtener asistencia con cualquier necesidad de BI a gran escala, tutoría, etc.

Salud

SU18_powerbi_badge

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.