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

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