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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors