This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hola comunidad.
Tengo el siguiente problema.
Tengo una tabla con datos, con 2 columnas de fecha, una de inicio [Start] y otra de fin [Finish].
Y quisiera tener en mi reporte un filtro de año, que al seleccionar solo me muestre los registros que estuvieron en ese año.
Ejemplo si selecciono 2017, mostraría todos los que estuvieron activos en esa fecha
¿Se puede hacer algo así?
Solved! Go to Solution.
Lo pude resolver de la siguiente manera.
Creé una nueva tabla para tener los años con los cuales cruzaría el reporte usando filtro.
StartDate = CALENDAR(MIN(Projects[Start]),MAX(Projects[Start]))
Luego creé 1 columna en mi tabla donde están los datos que necesito filtrar, para marcar con un 1 los que están dentro de ese año, y con un 0 los que no.
Flag =
var _min=SELECTEDVALUE(StartDate[Inicio].[Year])
return
IF(AND(SUM(Projects[FechaInicio].[Year]) <= _min , SUM(Projects[FechaFin].[Year]) >= _min), 1 ,0)
Luego en el reporte filtro los Flag 1
Y así quedó el reporte
Lo pude resolver de la siguiente manera.
Creé una nueva tabla para tener los años con los cuales cruzaría el reporte usando filtro.
StartDate = CALENDAR(MIN(Projects[Start]),MAX(Projects[Start]))
Luego creé 1 columna en mi tabla donde están los datos que necesito filtrar, para marcar con un 1 los que están dentro de ese año, y con un 0 los que no.
Flag =
var _min=SELECTEDVALUE(StartDate[Inicio].[Year])
return
IF(AND(SUM(Projects[FechaInicio].[Year]) <= _min , SUM(Projects[FechaFin].[Year]) >= _min), 1 ,0)
Luego en el reporte filtro los Flag 1
Y así quedó el reporte
¿Alguien sabe o necesita más información al respecto?
Agradecería una ayuda, por favor.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.