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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Syndicate_Admin
Administrator
Administrator

Selección de los valores MIN y MAX

Hola

Necesito mostrar la edad seleccionada en mi informe. He probado estas 2 opciones, sin embargo, esto siempre muestra solo los valores mínimos y máximos de la tabla. Entonces, por ejemplo, cuando selecciono la edad de 14 a 24 años y aplico muchos otros filtros, estos números cambiarán al elegir el valor mi y max de la tabla, en lugar de mostrar lo que el usuario eligió en el filtro.

SI(ISFILTERED('Mesa'[Edad]),"| Edad: "& BRIBONA(TODOS SELECCIONADOS('Mesa'),'Mesa'[Edad]) &" - "& MAXX(TODOS SELECCIONADOS('Mesa'),'Mesa'[Edad]) &" ")
SI(ISFILTERED('Tabla'[Edad]),"| Edad: "& MIN('Tabla'[Edad]) &" - " & MÁXIMO('Tabla'[Edad]) & " ")
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Me las arreglé para resolverlo yo mismo 🙂

VAR MinAge =
    CALCULATE(
        MIN('Table'[Age]),
        ALLSELECTED('Table')
    )
VAR MaxAge =
    CALCULATE(
        MAX('Table'[Age]),
        ALLSELECTED('Table')
    )
RETURN
    IF(
        ISFILTERED('Table'[Age]),
        "| Age: " & MinAge & " - " & MaxAge,
        BLANK()
    )

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Me las arreglé para resolverlo yo mismo 🙂

VAR MinAge =
    CALCULATE(
        MIN('Table'[Age]),
        ALLSELECTED('Table')
    )
VAR MaxAge =
    CALCULATE(
        MAX('Table'[Age]),
        ALLSELECTED('Table')
    )
RETURN
    IF(
        ISFILTERED('Table'[Age]),
        "| Age: " & MinAge & " - " & MaxAge,
        BLANK()
    )

Syndicate_Admin
Administrator
Administrator

Hola @WOLFIE,
¿Podrías compartir un simple pbix con alguna fecha para que pueda echarle un vistazo?

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.