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
Syndicate_Admin
Administrator
Administrator

[DAX] ¿Por qué no puedo usar el filtro dentro de la tabla de resumen?

hola

Estoy haciendo 25 días de desafío desde curbal y estoy en el día 15:
https://curbal.com/25-days-of-dax-fridays-challenge

y tengo problemas con el código proporcionado en la solución, que es:

jaryszek_0-1657891165001.png

para mí es un error de lanzamiento:

jaryszek_1-1657891194613.png

solo funciona con Products[ProductID].

¿Alguien puede explicar por qué en un simple y sencillo inglés?
Por favor, ayuda,
Mejor
Jacek



2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

En la variable QPurchases, la función FILTER no se aplica a la tabla Orders, sino a la tabla temporal creada por SUMMARIZE. Si intenta filtrar en [ID de producto] en lugar de Pedidos [ID de producto], entonces eso debería funcionar, ya que está filtrando la columna de la tabla temporal.

Otra forma de hacerlo sería mover la llamada FILTER dentro del SUMMARIZE, por lo que

SUMMARIZE( FILTER(Orders, Orders[Product ID] = 11 ), rest of SUMMARIZE statement

muchas gracias @johnt75

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.