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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MaiconJ97
Regular Visitor

¿Como obtener el próximo valor en base a la fecha?

¿Cómo puedo hacer para saber cuál es la temporada subsecuente basándose en la fecha?

 

Tengo una tabla de esta forma:

CampoTemporadaFecha de Inicio
01Temp110/03/2024
01Temp220/04/2024
01Temp505/10/2024
03Temp215/04/2024
03Temp310/10/2024

 

El resultado que estoy esperando:

CampoTemporadaFecha de inicio

Temporada

Subsecuente

Fecha de inicio de la

temporada subsecuente

Fin de la Temporada
01Temp110/03/2024Temp220/04/202419/04/2024
01Temp220/04/2024Temp505/10/202404/10/2024
01Temp505/10/2024Temporada VigenteToday()Today()-1
03Temp215/04/2024Temp315/04/202414/04/2024
03Temp310/10/2024Temporada VigenteToday()Today()-1


Ya he probado algunas soluciones, como por ejemplo MINX(), el problema es que para cada campo ella devuelve todas las temporadas, por más que sea NULL.

Mi idea es determinar el rango de fechas de las temporadas, que va desde el primer registro de la temporada "x" hasta un día antes del primer registro de la temporada "y". Quiero hacer eso para determinar cuántos eventos climáticos sucedieron en cada temporada. 

1 ACCEPTED SOLUTION
v-zhouwen-msft
Community Support
Community Support

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @MaiconJ97 ,

Please check the attachment for details.

vzhouwenmsft_0-1733796004490.png

 

Best Regards,
Wenbin Zhou

View solution in original post

3 REPLIES 3
v-zhouwen-msft
Community Support
Community Support

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @MaiconJ97 ,

Please check the attachment for details.

vzhouwenmsft_0-1733796004490.png

 

Best Regards,
Wenbin Zhou

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Thank you. I have already modified it following the recommendations.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors