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
TabathaN
Advocate II
Advocate II

Agrupar una coincidencia EXACTA

Hola

Tengo una fórmula, a continuación, que agrupa los datos basados en el identificador del proveedor. La fórmula real es bastante larga y contiene varias agrupaciones como esta. El problema que estoy teniendo es que si hay otro proveedor, digamos.... número de quién es 337, ese proveedor también se mostrará en esta agrupación debido a una coincidencia parcial con el "37". ¿Cómo puedo cambiar esta fórmula para que solo tire de coincidencias exactas?

Equipo de Supervisión de Proveedores (Supervisoring Provider Team)
Si (
Búsqueda ( "37", Transacciones[Id. de proveedor],, -1 ) > -1
|| Búsqueda ( "115", Transacciones[Id. de proveedor],, -1 ) > -1
|| Búsqueda ( "74", Transacciones[Id. de proveedor],, -1 ) > -1,
"Team Byrd",
"Error - Contactar con Tabatha"
)
1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@TabathaN, pruebe esta columna calculada:

Supervising Provider Team = 
SWITCH (
    TRUE (),
    Transactions[Supervising Provider ID] IN { 37, 115, 74 }, "Team Byrd",
    Transactions[Supervising Provider ID] IN { 38, 116, 75 }, "Team X",
    "Error - Contact Tabatha"
)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hola @TabathaN ,

Si necesita extraer coincidencias exactas, utilice la siguiente expresión dax:

Supervising Provider Team = 
SWITCH (
    TRUE (),
    Transactions[Supervising Provider ID] IN { 37, 115, 74 }, "Team Byrd",
    "Error - Contact Tabatha"
)

Hice una muestra, ver más abajo:

Screenshot 2020-09-28 164653.png

Saludos
Kelly

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

DataInsights
Super User
Super User

@TabathaN, pruebe esta columna calculada:

Supervising Provider Team = 
SWITCH (
    TRUE (),
    Transactions[Supervising Provider ID] IN { 37, 115, 74 }, "Team Byrd",
    Transactions[Supervising Provider ID] IN { 38, 116, 75 }, "Team X",
    "Error - Contact Tabatha"
)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.