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
abhishek_tlc
Regular Visitor

Ventas contra la misma categoría pero para diferentes plazos

Hola

Tengo una tabla de ventas A en la que tengo ventas diarias para todas las marcas.

Tengo otra tabla B en la que tengo Marcas enumeradas con una fecha de lanzamiento y finalización diferente.

abhishek_tlc_0-1594046383499.png

Quiero información de ventas en la tabla B, pero dentro de ese rango de datos especificado (es decir, ventas entre la fecha de lanzamiento y finalización solamente) en diferentes filas.

¿Cómo puedo hacer eso en PowerBI?

Gracias

Abhishek

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hola @abhishek_tlc ,

Consulte la columna calculada:

Column = CALCULATE(SUM(TableA[Sales]),FILTER(TableA,TableA[Date]<=EARLIER(TableB[End Date]) && TableA[Date] >= EARLIER(TableB[Launch Date]) && TableA[Brand ID] = EARLIER(TableB[Brand ID])))

Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Saludos

Dedmon Dai

amitchandak
Super User
Super User

@abhishek_tlc , nueva columna en la Tabla b

sumx(Filter(TableA, TableA[Brand ID] =TableA[Brand ID] && TableA[Date] >=TableA[Lunch Date] && TableA[Date] <=TableA[end Date]),TableA[Sales] ) 

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.