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
Anonymous
Not applicable

Filtrado basado en la fecha de hoy

Tengo dos colotunes en una de las tablas de mi modelo de datos: Fecha de inicio y Fecha de finalización
Necesito filtrar valores basados en la Condición de que cada vez que el usuario abre el informe, la fecha de apertura del informe (Fecha actual) debe estar entre la Fecha de inicio y la Fecha de finalización .
¿Alguien puede ayudarme en esto?

Gracias de antemano !!!

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

Hola @Smrithi_10 ,

Crea una medida como la siguiente y agréguela al filtro.

Measure = IF(SELECTEDVALUE('Table'[date])<=TODAY(),1,0)

El resultado se mostraría como se muestra a continuación.

1.PNG

2.PNG

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hola @Smrithi_10 ,

Crea una medida como la siguiente y agréguela al filtro.

Measure = IF(SELECTEDVALUE('Table'[date])<=TODAY(),1,0)

El resultado se mostraría como se muestra a continuación.

1.PNG

2.PNG

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Smrithi_10 , Para crear una nueva columna como esta en la tabla de fechas y seleccionar como valor "Seleccionar"

Switch( Verdadero () ,
[Fecha] > ?min(Tabla[Fecha de inicio]) && [Fecha] >-max(Tabla[Fecha de finalización]), "Seleccionar",
"No seleccionado"
)

Consulte también: https://www.youtube.com/watch?v=hfn05preQYA

Anonymous
Not applicable

Gracias por la respuesta. ¿Necesito crear una nueva tabla de fechas que sea solo para fechas o puedo agregar esta columna en la tabla emergente que tiene colotuones de fecha de inicio y finalización?

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.