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

Medida Dax para filtrar tabla entre 2 fechas

Buenas tardes

Tengo una pregunta sobre una medida para filtrar una tabla visual entre dos fechas.

Tengo la siguiente tabla visual:

filter.PNG

El objetivo es visualizar solo las filas donde "Datum Manco" está en el rango de "Start Promo" y end "End Promo".

Así que en este ejemplo solo quiero ver las dos primeras filas.

Creé la medida a continuación:

Dónde _selectedperiodstart=
SELECCIONARCOLUMNAS(TODOSSELECCIONADOS(Promoción),"Fecha",Promo[Iniciar Promo])
Dónde _selectedperiodstop=
SELECCIONARCOLUMNAS(TODOSSELECCIONADOS(Promoción),"Fecha",Promo[Detener Promo])
devolución
SI(MIN(Manco[Fecha del defecto]) en _selectedperiodstart||MÁXIMO(Manco[Fecha del defecto]) en _selectedperiodstop,1,0)
Sin embargo, esto solo devuelve la fila con "Datum Manco" 16/02/22. No devuelve la fila con Datum Manco 15/02/22.
¿Alguien puede ayudarme?
Gracias.
0 REPLIES 0

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.