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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
nleuck
Post Patron
Post Patron

Total de ejecución para Rolling 12

Hola a todos,

Tengo problemas para que mi Running Total for Rolling 12 aparezca correctamente en mi mesa.

rolling 12 open tickets.png

Estoy tratando de conseguir el total de las Entradas Abiertas. Muestra el total que se ejecuta hasta el final, aunque no es correcto. Yo esperaría que mayo 2019 hasta octubre de 2019 para estar en blanco, luego noviembre 2019 a enero 2020 - 1, Feb 2020 hasta marzo 2020 3, y abr 2020 a 16

Esta es la fórmula que estoy usando para calcular el total de ejecución:

Ejecución de entradas abiertas totales (Rolling 12) ?
CALCULATE([Total de Entradas Abiertas],
DATESBETWEEN('DateCalendar'[Fecha],
EOMONTH (HOY (),-13),
EOMONTH (HOY (),-1)
Cualquier ayuda sería muy apreciada.
¡Gracias!
1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hola, @nleuck

Basándome en su descripción, asumo que desea calcular el valor acumulado. Creé datos para reproducir tu escenario. El archivo pbix se adjunta al final.

c1.png

Puede crear una medida como se muestra a continuación.

Result = 
var _lastdate = LASTDATE(Sales[Date])
return
CALCULATE(
    SUM(Sales[Total Open Tickets]),
    FILTER(
        ALL(Sales),
        Sales[Date]<=_lastdate
    )
)

Resultado:

c2.png

Saludos

Allan

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

View solution in original post

6 REPLIES 6
v-alq-msft
Community Support
Community Support

Hola, @nleuck

Basándome en su descripción, asumo que desea calcular el valor acumulado. Creé datos para reproducir tu escenario. El archivo pbix se adjunta al final.

c1.png

Puede crear una medida como se muestra a continuación.

Result = 
var _lastdate = LASTDATE(Sales[Date])
return
CALCULATE(
    SUM(Sales[Total Open Tickets]),
    FILTER(
        ALL(Sales),
        Sales[Date]<=_lastdate
    )
)

Resultado:

c2.png

Saludos

Allan

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

amitchandak
Super User
Super User

@nleuck , ¿tiene fecha de inicio y fecha de finalización y luego remita este

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Si hay una sola fecha, podemos usar la fórmula rodante

Rolling 12 - CALCULATE(sum(Sales[Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(Sales[Sales Date]),-12,MONTH))
Rolling 12 - CALCULATE(sum(Sales[Sales[Sales Amount]),DATESINPERIOD(Table[Date Filer],MAX(Sales[Sales Date]),-12,MONTH))

Para obtener lo mejor de la función de inteligencia de tiempo. Asegúrese de que tiene un calendario de fechas y se ha marcado como la fecha en la vista de modelo. Además, únase a él con la columna de fecha de su hecho/s. Consulte:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

Vea si mi seminario web sobre Time Intelligence puede ayudar: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Aprecia tus Felicitaciones.

@amitchandak

Tengo un calendario de fechas y tiene una relación con mis datos. Estos son los resultados que obtengo cuando intento usar esas dos fórmulas:

Rolling 12 - CALCULATE(sum(Sales[Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(Sales[Sales Date]),-12,MONTH))
Rolling 12 - CALCULATE(sum(Sales[Sales[Sales Amount]),DATESINPERIOD(Table[Date Filer],MAX(Sales[Sales Date]),-12,MONTH))

rolling 12 open tickets 2.png

parry2k
Super User
Super User

@nleuck comprobar estos mensajes

https://www.sqlbi.com/articles/rolling-12-months-average-in-dax/

https://community.powerbi.com/t5/Desktop/Trailing-12-or-Rolling-12-month-sum/td-p/164419

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k

Desafortunadamente, eso no funcionó. Me dio una mezcla de 3 y 4 hasta el final.

@nleuck no está seguro de por qué compartir el archivo pbix para echar un vistazo, eliminar cualquier información confidencial antes de compartir.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors