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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors