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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Interact
Regular Visitor

ISFILTERED - una manera de diferenciar el filtro por selección en un gráfico y profundizar

Hola.

Esto puede ser un problema complicado de explicar, pero haré todo lo posible.

Tengo una tabla con una estructura jerárquica de indicadores de múltiples niveles (level1, level2, level3... hasta las 10). He creado un gráfico de columnas para mostrar esta jerarquía:

Column chart.PNGColumn chart 2.PNG

Cada indicador tiene un valor de "objetivo" y "resultado", que se muestra bien en el gráfico. Cuando este gráfico de columnas muestra el primer nivel jerárquico (nivel1), este otro gráfico de medidores que tengo necesita sumar el "resultado" y el "objetivo" de todos los indicadores desde el primer nivel (del mismo modo a todos los demás niveles). Me las arreglé para lograr esto usando esta medida:

result_with_filters = 
IF (
    ISFILTERED ( vw_indicator_hierarchies_template[level1] );
    IF (
        ISFILTERED ( vw_indicator_hierarchies_template[level2] );
        IF (
            ISFILTERED ( vw_indicator_hierarchies_template[level3] );
            ...
        );
        CALCULATE (
            [sum_result];
            vw_indicator_hierarchies_template[hierarchy_depth] = 2
        );
    );
    CALCULATE (
        [sum_result];
        vw_indicator_hierarchies_template[hierarchy_depth] = 1
    )
)

(básicamente si leve1 no se está filtrando, suma todos los indicadores de level1. A continuación, si se está filtrando level1 y no level2, suma todos los indicadores de level2 y así sucesivamente);

El único problema es cuando selecciono en el gráfico de columnas un indicador que tiene indicadores secundarios. Digamos que el usuario perforó hasta el segundo nivel, luego selecciona uno de los indicadores y este indicador en particular tiene hijos... porque estoy usando la función

ISFILTERED, calcula los totales de resultados y objetivos del tercer nivel... ¿Hay alguna manera de diferenciar en una medida entre el usuario que selecciona algo en el gráfico y el usuario haciendo un desglose?

Column chart 3.PNG


Lo siento por el post largo, pero he estado rebuscando mi cerebro durante esto durante días y ninguna cantidad de búsquedas de Google hava me encontró la respuesta.

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Interact comprobar la función ISINSCOPE, bien explicada aquí

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

1 REPLY 1
parry2k
Super User
Super User

@Interact comprobar la función ISINSCOPE, bien explicada aquí

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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