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

Recuento de ventas necesarias

Hola a todos

Estoy buscando hacer 2 medidas diferentes que me da lo siguiente: -

- para cada fecha, quiero ver los últimos 7 días de ventas

- para cada fecha, quiero ver los últimos 30 días de ventas

Ejemplo: - Hoy, quiero ver que la fecha de ayer contiene el recuento de ventas para (22, 21, 20, 19, 18, 17 y 16o) lo que significaría que la fecha 21 se pondría en contacto con el recuento de ventas del 21 al 15) - Por supuesto, la otra medida debería ser factible modificando esta.

En mi mesa,

Espero que tenga sentido.

1 ACCEPTED SOLUTION

Hola @TheLegendTamer

Puede marcarlo como respuesta haciendo clic en la siguiente opción:

009.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

7 REPLIES 7
Fowmy
Super User
Super User

@TheLegendTamer

¿Puede compartir algunos datos de muestra y el resultado esperado para tener una comprensión clara de su pregunta?
Puedes guardar tus archivos en OneDrive, Google Drive o cualquier otra plataforma de uso compartido en la nube y compartir el enlace aquí.
____________________________________
¿Cómo pegar datos de muestra con su pregunta?
¿Cómo obtener respuestas a sus preguntas rápidamente?

_____________________________________
¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up si le gusta esta respuesta 🙂

Youtube Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Gracias por su respuesta.

El siguiente es lo que espero - no tienen ningún dato de muestra todavía tengo miedo.

3 medidas en total - ayer, que está bien. Luego duran 7 días y duran 30 días. Así que mirando la fecha de los ayeres en el eje 'x' da la suma de las ventas de ayer, los últimos 7 días a partir de ayer y los últimos 30 días a partir de ayer.

TheLegendTamer_0-1600857159862.png

se puede utilizar algo como

Rolling 7 Day Amount ? CALCULATE(SUM(table[Value]),DATESINPERIOD(DimDate[Date],MAX(DimDate[Date]),-7,DAY))
Rolling 30 Day Amount á CALCULATE(SUM(table[Value]),DATESINPERIOD(DimDate[Date],MAX(DimDate[Date]),-30,DAY))






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

Proud to be a Super User!




¡Diamante! Muchas gracias

Hola @TheLegendTamer

Si la ayuda de las publicaciones anteriores, por favor márquela como una respuesta para ayudar a otros a encontrarla más rápidamente. ¡Gracias!

Si no, por favor, amablemente elaborar más.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Lo he marcado como un pulgar hacia arriba, ¿no significa que es la respuesta?

Hola @TheLegendTamer

Puede marcarlo como respuesta haciendo clic en la siguiente opción:

009.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

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.