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

Sumando hasta el último día del mes

Buenos días

Intento crear una medida, que calcula la suma de los importes de contabilidad general ('Entradas gl'[G_LEntries.Importe]) hasta la última fecha de cada mes, en función de la columna 'Entradas de contabilidad'[G_LEntries.Posting_Date].

Es decir: el 29-02-2020, debe resumir todo donde 'GL Entries'[G_LEntries.Posting_Date] <= que 2020-02-29, el 2020-03-31 'GL Entries'[G_LEntries.Posting_Date] <= que 2020-02-29, y así sucesivamente para todos los meses.

Estoy ataching un archivo PBI de ejemplo en el enlace de abajo:

https://www.dropbox.com/s/jlapxus5a3i6kee/Example.pbix?dl=0

¿Alguna idea, cómo podría lograr el resultado deseado? Debería tener un aspecto similar al siguiente, pero debería incluir todos los meses, no solo los que parezcan con datos:

almafater2_0-1623148844487.png

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Logré resolverlo yo mismo. Se utiliza este filtro:

FILTER(ALL(Dates[Date]), Dates[Date] <= MAX(Dates[Date]

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Logré resolverlo yo mismo. Se utiliza este filtro:

FILTER(ALL(Dates[Date]), Dates[Date] <= MAX(Dates[Date]
Syndicate_Admin
Administrator
Administrator

@almafater2 , datesmtd con una tabla de fechas

ejemplo

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

Power BI: mes a mes con o sin inteligencia de tiempo
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

Gracias, pero ir da el mismo resultado:

almafater2_0-1623154293128.png

El resultado no debe ser decreciente y también debe incluir meses, que no tienen datos.

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.