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
Anonymous
Not applicable

Matriz - Medida diferente con diferente nivel de granularidad

Hola a todos,

Tengo una matriz con diferentes niveles de granularidades:

  • Contrato 1: XXXXX
    • Proyecto 1.1: XXXXX/ABC
    • Proyecto 1.2: XXXXX/DEF
    • ...
    • Proyecto 1.6
      • Riesgo 1
      • Riesgo 2
      • Riesgo 3
  • Contrato 2: AAAAA
    • Proyecto 2.1: AAAAA/ABC
      • Riesgo 1
      • Riesgo 2
      • ...

Quiero poner una medida en columna, pero la medida debe hacer cálculos diferentes a nivel de contrato (suma de los proyectos relacionados) y nivel de proyecto (encontrar un valor en una tabla relacionada)y no devolver nada en el nivel de riesgo.

¿Alguna pista? He intentado con HASONEVALUE para riesgos, IF(HASONEVALUE(RiskNumber), "", IF(HASONEVALUE(Contract), SUM(...) ...

Pero tengo Proyecto con sólo 1 riesgo, que luego hace que el proyecto relacionado y el contrato para tener también ""

Si tienes alguna idea para empezar por el camino correcto.

Gracias por su tiempo,

Tom

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hola @TomB

Puede obtenerlo utilizando la función ISINSCOPE para crear una medida IF, vea más detalles como se muestra a continuación:

https://xxlbi.com/blog/new-dax-function-isinscope/

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hola @TomB

Puede obtenerlo utilizando la función ISINSCOPE para crear una medida IF, vea más detalles como se muestra a continuación:

https://xxlbi.com/blog/new-dax-function-isinscope/

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.