Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Ventas por mes con año

Hola a todos

¿Cómo puedo calcular las "Ventas por mes" anuales?

La siguiente tabla es la tabla de origen.

Sales per month source.jpg

La tabla de destino es

Sales per month target.jpg

Gracias de antemano.

Nota: "---" significa que el valor está presente. solo para una breve explicación, he usado el símbolo "---" en la tabla de destino.

1 ACCEPTED SOLUTION

Finalmente, obtuve una lógica para este requisito.

SalesPerMonth = CALCULAR(SUMA(Ventas[Importe]),
FILTRO('Ventas',(Ventas[Mes Año]=ANTERIOR(Ventas[Mes Año]))
))
Gracias por todo.

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Gracias. Está funcionando.

¿Hay alguna posibilidad de crear " ventas por mes" como una nueva columna? ¿Cuál es la lógica para eso?

Salida como,

New Microsoft Word Document_4.jpg

Finalmente, obtuve una lógica para este requisito.

SalesPerMonth = CALCULAR(SUMA(Ventas[Importe]),
FILTRO('Ventas',(Ventas[Mes Año]=ANTERIOR(Ventas[Mes Año]))
))
Gracias por todo.

Usé esta lógica,

Untitled.jpg

Pero estoy obteniendo ventas totales por mes independientemente de sír.
Significa obtener el mismo valor en mayo de 2018 y mayo de 2019, agosto de 2018 y agosto de 2019, etc.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.