Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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?
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.