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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Hola, ¿puedes ayudarme a contar sólo boleto abierto para cada mes?

Hola

Tengo una tabla abajo :

BoletoFecha de creaciónFecha cerradaMes está abierto
EneroFebreroMarzoAbrilMayoJunio
11-Jan31-JanEneroEnero
21-Jan1-FebEne,FebEneroFebrero
315-Mar1-JunMar,Abr,Mayo,Jun MarzoAbrilMayoJunio
431-Mayo1-JunMayo, Jun MayoJunio
58-Feb1-AbrFeb,Mar,Apr FebreroMarzoAbril
61-Mayo15-MayoMayo Mayo
731-Jan1-JunEne,Feb,Mar,Apr,Mayo,JunEneroFebreroMarzoAbrilMayoJunio
815-Jun18-JunJunio Junio
91-Mar1-MayoMar,Abr,Mayo MarzoAbrilMayo
101-Jan2-JanEneroEnero

y necesito calcular el recuento como se muestra a continuación:

MesRecuento de en curso
Enero4
Febrero3
Marzo4
Abril4
Mayo5
Junio4

así que para cada boleto agregue uno al conteo abierto/mes a partir del mes en que el boleto se abrió a través (e incluyendo) el mes en que se cerró.

aquí está mi siguiente fuente de datos

https://drive.google.com/file/d/1cu-MhCMuPNJiW-p8Pn9a-AkWl-GBqYmL/view?usp=sharing

4 REPLIES 4
Pragati11
Super User
Super User

Hola @sandip ,

Compruebe si el siguiente subproceso ayuda:

https://community.powerbi.com/t5/Desktop/Count-tickets-opened-and-closed-in-the-same-month/m-p/97092...

Gracias

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hola @parry2k

,

@amitchandak,

He usado la siguiente expresión,

Boletos de transporte1 ?
VAR __mindate - MIN ( 'DimDateDemo'[Fecha] )
devolución
CALCULAR (
COUNTROWS( 'Datos de demostración' ),
'Datos de demostración'[Fecha de creación] <- __mindate,
O ( 'Datos de demostración'[Fecha cerrada] > __mindate, ISBLANK('Datos de demostración'[Fecha cerrada]) )
)

y he creado una tabla de fechas como se muestra a continuación:

DimDateDemo ?
GENERAR (
CALENDAR ( FIRSTDATE('Demo Data'[Date Created]), LASTDATE('Demo Data'[Date Created])),
Tiempo de corriente de VAR [Fecha]
Día del VAR - DIA (día actual)
Mes de VAR - MES ( currentDay )
Año VAR á año (día actual)
REMIENDO DE VUELTA (
"Día", día,
"Número de mes", MES ( [Fecha] ),
"Nombre del mes", FORMAT ( [Fecha], "MMMM" ),
"Año", año,
"Año del mes", FORMAT ( [Fecha], "MMMM-AAAA" ),
"Mes Corto", FORMAT ( [Fecha], "MM" ),
"Año mes corto", FORMAT ( [Fecha], "MMM-YY" ),
"Mes Año", FORMAT ( [Fecha], "YYMM" )
)
)
y no hay ninguna relación entre ellos, pero estoy obteniendo resultados a continuación:

Hola @sandip,

¿Has resuelto esto o sigues estriendo con él?

Salud
Sturla

amitchandak
Super User
Super User

@sandip, consulte esto puede ayudar a

https://www.dropbox.com/s/bqbei7b8qbq5xez/leavebetweendates.pbix?dl=0

Sólo haz un recuento distinto de meses

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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