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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Syndicate_Admin
Administrator
Administrator

Calcular el número promedio de transacciones por mes

Actualmente tengo una tabla de transacciones de solicitud con ID de solicitud y fecha de creación.

Me gustaría obtener el número promedio de transacciones por mes basado en esta tabla.

¡Gracias de antemano!

IDENTIFICACIÓNTítuloFecha de creaciónCategoría
1abecedario01/01/20231
2ABCD01/03/20232
3ABCDE02/03/20232
4ABCDEF02/06/20231

¡Bien!

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Muchas gracias @amitchandak, ¡ esto funcionó perfectamente!

Syndicate_Admin
Administrator
Administrator

@aquidato , Cree una tabla de fechas y únase con su tabla y tenga mes año allí

A continuación, cree una medida como

Averagex(Values('DAte'[Month Year]), calculate(count(Table[ID]) ) )

Tabla de fechas

date = Addcolumns(calendar(date(2012,01,01), date(2024,12,31) ), "Month no" , month([date])
, "Año", año([fecha])
, "Mes Año", formato([fecha],"mmm-aa")
, "Ordenación de mes-año", año([fecha])*100 + mes([fecha])
, "Qtr Year", format([date],"yyyy-\QQ")
, "Qtr", trimestre([fecha])
, "Mes",FORMAT([Fecha],"mmmm")
, "Month sort", month([DAte])
, "Año del año fiscal", si( Mes(_max) <7 , año(_max)-1 ,año(_max))
, "es hoy" ,if([fecha]=HOY(),"hoy",[fecha]&"")
,"Día del año" , datediff(date(year([DAte]),1,1), [Date], day)+1
, "Tipo de mes", Switch( True(),
eomonth([Fecha],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Fecha],0)= eomonth(Today(),0),"Este mes" ,
Formato([Fecha],"MMM-AAAA") )
,"Tipo de año" , Switch( True(),
año([Fecha])= año(Hoy()),"Este año" ,
año([Fecha])= año(Hoy())-1,"Último año" ,
Formato([Fecha],"AAAA")
)
)

Por qué falla la inteligencia del tiempo - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
Para obtener lo mejor de la función de inteligencia de tiempo. Asegúrese de que tiene un calendario de fechas y que se ha marcado como la fecha en la vista de modelo. Además, únalo con la columna de fecha de su(s) hecho/s. Referir: radacad sqlbi Mi serie de videos Aprecia tus felicitaciones.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

Users online (4,781)