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
PhreshMan
Frequent Visitor

Los últimos 12 períodos en los que Período es Tipo de datos "Texto" y no "DateTime"

Hola a todos

Por favor, ayuda con este problema.

Mi gráfico de líneas tiene un eje con Period & FiscalYear, es decir. P1 2019/20, P2 2019/20 y P3 2019/20. El tipo de datos es Text en lugar de DateTime.

Last 13 Period.PNG

Estoy tratando de aplicar fitler para mostrar el último 12 Período de selección. Es decir, si selecciono P12 2019/20, quiero trazar valores de P1 2019/20 a P12 2019/20.

Por favor, asiste.

Gracias

Phresh

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@PhreshMan

Puede consultar este artículo para comprender la lógica de obtener el último n mes.

No estoy seguro acerca de su modelo, el archivo sample está aquí con la columna PeriodYear Text como segmentación de datos.

Equipo de Apoyo Comunitario Paul Zheng _
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Hola Paul,

Por favor, disculpe el retraso en volver a usted.

A continuación se muestra un problema adicional que estoy tratando de resolver.

Estoy tratando de escribir el siguiente DAX:

12 Período Fiscal Rolling = SUMA de los últimos 12 Períodos, incluya el Período actual. (No estoy usando Semana, Mes, Trimestre)

TABLA: TABLA DE FECHAS: VENTAS
Ventas de Período Fiscal 12 Período Fiscal Rodante
FP1 20
FP2 60
FP3 30
FP4 40
FP5 10
FP6 20
FP7 40
FP8 20
FP9 20
FP10 50 310
FP11 70 360
FP12 30 330

Por favor, asiste.

saludos

PhreshMan

parry2k
Super User
Super User

@PhreshMan Según sus comentarios, ¿está diciendo que no tiene ninguna columna de fecha que pueda ayudar a obtener los últimos 12 meses? ¿Es esto correcto?



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.

Hola Parry2k,

Tengo dos tablas en mi modelo de datos:

Fecha de venta

Fecha de venta (fecha) Fecha: es decir, 1/2/2019, 2/5/2019, 26/8/2019 (Fecha)

Período de sucursal (texto): P1 a P12 (número entero)

.... PeriodYear: es decir, PI 2019/20, P2 2019/20 (Texto)

etcetera

PeriodYear se utiliza en el Eje.

saludos

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