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.
¿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].
DATE_FIRST de identificación
1 | 20/08/2020 |
2 | 20/09/2020 |
3 | 12/09/2020 |
DATES_SECOND de identificación
1 | 19/08/2020 |
1 | 20/08/2020 |
1 | 21/08/2020 |
2 | 19/09/2020 |
2 | 20/09/2020 |
2 | 21/09/2020 |
3 | 11/09/2020 |
3 | 12/09/2020 |
3 | 13/09/2020 |
Solved! Go to Solution.
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
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |