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

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