cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Mes de la recursividad

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 ticketsMes AñoDiferencia
100503-20190
100202-20203
100001-20215debe 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

1 ACCEPTED 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]))

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

@Taddi10

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]))

Syndicate_Admin
Administrator
Administrator

@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 😞

Taddi10_0-1632903835659.png

¿Tienes una idea, por favor?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors