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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Ayuda con la fecha fija

Buenas tardes

Tengo la siguiente pregunta: Tengo una columna con las fechas de salida de los huéspedes del hotel y necesito crear una nueva columna que siempre me traiga el día 15 del mes siguiente a la fecha de salida.

Ejemplos: 10/08/24 - devolución 15/09/2024

23/10/2024 - Regreso 15/11/2024


¿Alguien sabría cómo hacerlo?

powertechbi_0-1728069132821.png

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Bastante fácil,

= EOMONTH([check-out date],0)+15
Syndicate_Admin
Administrator
Administrator

Columna calculada:

NextMonth15th = 
DATE(YEAR([CheckOutDate]), MONTH([CheckOutDate]) + 1, 15)

Power Query

= Date.From(Date.AddMonths([CheckOutDate], 1)) + (15 - Date.Day(Date.From(Date.AddMonths([CheckOutDate], 1))))
Syndicate_Admin
Administrator
Administrator

Hola

Probar:

Fecha siguiente = DATEADD(STARTOFMONTH( NEXTMONTH('Tabla'[Fecha])),14,DAY)

Mejor opción para crear el campo requerido en Power Query (si tiene problemas de rendimiento).

Saludos

Oktay

Si te ayuda, agradece las felicitaciones y márcalas como solución 🙏🏻 !!

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.

Top Solution Authors