Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hola a todos,
Necesito su ayuda con respecto a un problema, tengo un total por mes y necesito comparar nuevos boletos para cada mes aquí debajo de un ejemplo:
Contar tickets | Mes Año | Diferencia | |
1005 | 03-2019 | 0 | |
1002 | 02-2020 | 3 | |
1000 | 01-2021 | 5 | debe ser 2 : comapring al mes pasado y no el mes máximo |
Necesito encontrar 0, luego 3, luego 2 y no 5 !!!
una forma recursiva!
Cualquier ayuda será aperdicada
Solved! Go to Solution.
Sí gracias, lo encontré, necesito una tabla de calendario y esta es la medida:
NBR-1 = CALCULAR([NBR],
KEEPFILTERS('Calendario'[Fecha])--
CALCULAR([NBR],
PREVIOUSMONTH('Calendario'[Fecha]))
necesitas tener una columna de fecha.
Column =
VAR _next=MAXX(FILTER('Table','Table'[Month Year]<EARLIER('Table'[Month Year])),'Table'[Month Year])
var _nextvalue=maxx(FILTER('Table','Table'[Month Year]=_next),'Table'[Count tickets])
return if(ISBLANK(_nextvalue),0,_nextvalue-'Table'[Count tickets])
pls ver el archivo adjunto a continuación
Sí gracias, lo encontré, necesito una tabla de calendario y esta es la medida:
NBR-1 = CALCULAR([NBR],
KEEPFILTERS('Calendario'[Fecha])--
CALCULAR([NBR],
PREVIOUSMONTH('Calendario'[Fecha]))
@Taddi10 , Primero necesitas un mes al año en formato AAAAMM
nuevas columnas
Mes Año 1= derecha([Mes Año],4) & izquierda([Mes Año],2)
ahora cree una columna
nueva columna =
var _max = maxx(filter(Table, [Month Year 1] <earlier([Month Year 1]) ),[Month Year 1])
devolución
[Contar ticket] -maxx(filter(Table, [Month Year 1] =_max ),[Count Ticket] )
Hola
Gracias por su respuesta
Lo intenté pero no funciona tengo un error 😞
¿Tienes una idea, por favor?