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
PowerBI123456
Post Partisan
Post Partisan

Búsqueda de Combos

Estoy tratando de identificar si una cuenta tiene combinaciones de códigos específicas. Tengo 2 tablas, una que muestra códigos por cuenta:

PowerBI123456_0-1599574265351.png

La segunda tabla muestra diferentes combinaciones de códigos:

PowerBI123456_1-1599574291565.png

Necesito ver si una cuenta tiene alguna de las combinaciones de código y cuáles, por lo que debería tener este aspecto:

Capture.PNG

Cualquier ayuda sería apreciada. También estoy tratando con un montón de filas (1,000,000 +). ¡Gracias!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@PowerBI123456 - Lo hice de esta manera:

Measure 5 = 
    VAR __Codes = SELECTCOLUMNS('Table (5)',"Code",[Code])
    VAR __Table = FILTER('Table (5a)',[Code 1] IN __Codes && [Code 2] IN __Codes)
RETURN
    CONCATENATEX(__Table,[Code 1] & "&" & [Code 2],", ")

PBIX se adjunta a continuación sig, Página 5, Tabla (5) y Tabla (5a)


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

@PowerBI123456 - Lo hice de esta manera:

Measure 5 = 
    VAR __Codes = SELECTCOLUMNS('Table (5)',"Code",[Code])
    VAR __Table = FILTER('Table (5a)',[Code 1] IN __Codes && [Code 2] IN __Codes)
RETURN
    CONCATENATEX(__Table,[Code 1] & "&" & [Code 2],", ")

PBIX se adjunta a continuación sig, Página 5, Tabla (5) y Tabla (5a)


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@PowerBI123456 , ¿Puede explicar la lógica detrás de él.

@amitchandak hi - what do you mean? That last table is what I am trying to get to in Power BI. I am just trying to see at the account level, if has any of the code combinations from the second table and which ones. Thanks!

Hola @PowerBI123456 ,

¿Lo has resuelto? En caso afirmativo, acepte la respuesta útil como solución. Otros se beneficiarán de este hilo. ¡Gracias! Si todavía necesita ayuda, no dude en preguntarnos.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.