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

Rendimiento anual basado en el rendimiento mensual

Estoy tratando de calcular un rendimiento anual basado en los rendimientos mensuales. ¿Cómo hacer eso con dax? ¿Alguien tiene una sugerencia?

year.png

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Estoy teniendo problemas con la matriz. ¿Cómo puedo conservar el formato de matriz que he subido aquí? ¿Puedes enviar un ejemplo, pls?

Syndicate_Admin
Administrator
Administrator

@vinissousa1 , prueba como

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

ventas MTD del año pasado = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))

o crear medidas como

Ventas totales = SUMA(Ventas[Importe de ventas])

Año detrás de las ventas = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))

o
Año detrás de las ventas = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

y tomar diff %

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.