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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.