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
kenblack
Helper I
Helper I

Escritorio

Tengo 2 columnas de inicio y parada Quiero contar el número de eventos de parada de inicio de acuerdo con las siguientes reglas

el conteo comienza cuando se produce la primera descarga

• cualquier inicio en el primer bloque de 12 horas se cuenta como 1 evento

• cualquier nuevo inicio en los bloques de 24 horas siguientes y siguientes se cuentan como 1 evento adicional

• este conteo continúa hasta que haya un bloque de 24 horas sin evento.

• para el siguiente evento después del bloque de 24 horas sin evento, la secuencia comienza de nuevo

¿Podría alguien ayudarme por favor

Gracias de antemano

11 REPLIES 11
v-juanli-msft
Community Support
Community Support

Hola @kenblack

Además, voy a dar un ejemplo, por favor ayúdame a entender sus requisitos:

Capture4.JPG

Por favor, corrígeme si malinterpreta algo.

Saludos
Maggie
Equipo de apoyo a la comunidad _ Maggie Li
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@kenblack , Usted puede obtener diff con la hora mínima de la fecha del bloque y usarlo para obtener id

diff con bloque de fecha y hora min

nuevo col- datediff( minx(filter(Table, [block] ?earlier([block]) ),[date time]),[date time],hours)

Pragati11
Super User
Super User

Hola @kenblack ,

¿Puede compartir algunos datos de ejemplo para sugerir una solución para su consulta?

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

Hola @kenblack

Mi cuenta no tiene asess yo tu expediente.

No se recomienda compartir archivos/datos personales en una unidad personal.

Si su archivo contiene datos importantes y de privacidad, elimínelos.

Saludos

Maggie

Hola Pragati 11 siento ser un dolor, pero he tratado de ver cómo puedo compartir una muestra con usted le importaría guiarme a través de eso, así

Realmente lo siento, pero gracias

Hola @kenblack

Usted podría cargar un archivo de Excel a una unidad para la disponibilidad, a continuación, compartir la url con nosotros.

Es mejor hacer una pequeña muestra con el resultado esperado.

Saludos

Maggie

@kenblack puede compartir utilizando una unidad / unidad de Google.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

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