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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

¿Cómo agregar una columna que devuelva True si la fecha se encuentra entre otras dos fechas?

Tengo fecha con tres columnas de fecha (Date_1, Date_2 y Date_3). Necesito agregar una columna en la que devuelvo un verdadero si Date_2 se encuentra entre Date_1 y Date_3 (Date_2 > Date_1 y Date_2 < Date_3).

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Hola @DRing

bandera = si([Fecha 2]>=[fecha 1]&&[Fecha 2]<=[fecha 3],VERDADERO(),FALSO())
Ritaf1983_0-1704683737132.png

PBIX está conectado

Si esta publicación ayuda, considere aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente

@Ritaf1983 bandera = si(Y([Fecha 2]>=[fecha 1],[Fecha 2]<=[fecha 3]),VERDADERO(),FALSO()) también lo haría, ¿verdad? && se puede usar en lugar de if(AND())?

Sí.
Esta es la misma fórmula, solo que una forma diferente de escritura.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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