cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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

Accepted Solutions
Highlighted
Super User IX
Super User IX

Re: Búsqueda de combos

@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!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Highlighted
Super User IX
Super User IX

Re: Búsqueda de combos

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Helper IV
Helper IV

Re: Búsqueda de combos

@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!

Highlighted
Super User IX
Super User IX

Re: Búsqueda de combos

@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!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




View solution in original post

Highlighted
Community Support
Community Support

Re: Búsqueda combinada

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
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors