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
Anonymous
Not applicable

Filtrar combinar paso por otra columna

¿Cómo puede filtrar una columna de un campo "Combinado" por otro campo de la consulta? Por ejemplo, filtre cada "SECOND"[DATES_SECOND] > [DATE_FIRST].

AlejandroG_0-1600685923202.png

DATE_FIRST de identificación

120/08/2020
220/09/2020
312/09/2020

DATES_SECOND de identificación

119/08/2020
120/08/2020
121/08/2020
219/09/2020
220/09/2020
221/09/2020
311/09/2020
312/09/2020
313/09/2020
2 ACCEPTED SOLUTIONS

Hola @AlejandroG ,

por razones de rendimiento, recomendaría encarecidamente expandir, luego filtrar y volver a agrupar si es necesario.

Vea esta entrada de blog para más detalles: https://www.thebiccountant.com/2019/10/28/performance-tip-for-aggregations-after-joins-in-power-quer...

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

Hola @AlejandroG ,

ha habido un error de sintaxis en mi última respuesta. Esto funciona:

Table.SelectRows([SECOND], (row) => [DATE_FIRST] > row[DATES_SECOND] )

Pero también una variación en su enfoque de función también funcionaría:

let
    Sort = Table.Sort([SECOND],{{"DATES_SECOND", Order.Descending}}),
    Add = Table.AddColumn(Sort, "Custom", (row) => [DATE_FIRST] > row[DATES_SECOND] )
in
    Add

Consulte el archivo adjunto.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

11 REPLIES 11

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.

Top Kudoed Authors