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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Syndicate_Admin
Administrator
Administrator

Tabla que filtra menor, igual y mayor en 1 de otra tabla

Tengo una tabla de fechas con la columna FiscalYear establecida de 2020 a 2060

La medida CurrentFiscalYear =

CurrentFiscalYear = SI(MES(HOY()) >= 7, AÑO(HOY()) + 1, AÑO(HOY()))
He creado una tabla a continuación que debe ser dinámica y devolver el año fiscal actual (2024), todos los años anteriores (2020-2023) Y 1 año después del año fiscal actual (2025).
¿Cómo lo hago?

andy808_0-1705438714790.png

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

@andy808

Pruebe esto:

FiscalYearTest =

VAR actualaño fiscal = año(hoy())

DEVOLUCIÓN

Filtro (
distinct (Fechas[FiscalAño] ) ,

Fechas[FiscalYear] < = año fiscal actual
)

Hazme saber si funciona para ti

Gracias, esto no devuelve el año posterior al año fiscal actual. Estoy buscando la tabla para volver 2020-2025. Básicamente, año fiscal actual +1 año

@andy808

Pruebe esto:

FiscalYearTest =

CurrentFiscalYear = SI(MES(HOY()) >= 7, AÑO(HOY()) + 2, AÑO(HOY()) +1 )

DEVOLUCIÓN

Filtro (
distinct (Fechas[FiscalAño] ) ,

Fechas[FiscalYear] < = año fiscal actual
)

Así que si entiendo bien,

Si estoy en el mes >=7, entonces mi año fiscal actual debería ser 2025 y, por lo tanto, necesito obtener datos de 2020 a 2026

sin embargo

Si el mes <=7 entonces mi año fiscal actual es 2024 y, por lo tanto, necesito obtener los datos de 2020 a 2025.

¿Estoy en lo cierto?

Gracias por ayudar.... Sí, lo hacemos Año Fiscal

Utilicé:

FiscalYearTest = FILTRO(DISTINTO(Fechas[Año Fiscal]),Fechas[Año Fiscal] <= (SI(MES(HOY()) >= 7, AÑO(HOY()) + 1, AÑO(HOY()) + 1)))
Y conseguí
andy808_0-1705445821795.png

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Kudoed Authors