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

Extracción de un valor de una jerarquía inferior en una matriz

¡Hola a todos!

Tengo una matriz con 4 niveles. Hay valores posibles en cada uno de esos niveles jerárquicos. Necesito mostrar una marca en el nivel jerárquico más alto (nivel 1) si hay un valor que existe en cualquiera de los cuatro niveles. ¿Alguien tiene algún consejo sobre cómo lograrlo?

¡Gracias!

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

¿Podría mostrar una captura de pantalla de cómo se ve el resultado ahora?

Syndicate_Admin
Administrator
Administrator

Hola

Puede considerar el uso de una combinación de instrucciones Variables e IF. Considerar:

MEASURE =
VAR _Level1 =
    IF ( ISBLANK ( 'Table'[Level1] ), 0, 1 ) //You can tweak the "ISBLANK" statement depending on how you are determining value for the level
VAR _Level2 =
    IF ( ISBLANK ( 'Table'[Level2] ), 0, 1 )
VAR _Level3 =
    IF ( ISBLANK ( 'Table'[Level3] ), 0, 1 )
VAR _Level4 =
    IF ( ISBLANK ( 'Table'[Level4] ), 0, 1 )
RETURN
    IF ( ( _Level1 + _Level2 + _Level3 + _Level4 ) > 0, "Flag", "" )

¡Gracias por tu respuesta!
He intentado algo similar, pero aquí está con tu estructura. De todos modos, solo muestra la marca cuando la medida existe en ese nivel específico

Indicador de comentario =
FUERON _Level1 =
SI ( ISINSCOPE(Rpt_Layout[LVL_1]) && NO isblank([Comentario]) , 1, 0 )
FUERON _Level2 =
SI ( ISINSCOPE(Rpt_Layout[LVL_2]) && NO isblank([Comentario]) , 1, 0 )
FUERON _Level3 =
SI ( ISINSCOPE(Rpt_Layout[LVL_3_Sort]) && NO isblank([Comentario]) , 1, 0 )
FUERON _Level4 =
SI ( ISINSCOPE(Rpt_Layout[LVL_4]) && NO isblank([Comentario]) , 1, 0 )
DEVOLUCIÓN
SI ( ( _Level1 + _Level2 + _Level3 + _Level4 ) > 0, "Bandera", "" )

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors