Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

reporting on data in 3 different models

Ok, I come to the many for help again.   So i have the following models:   This is the initiative level,  1 of 2 top level items Rollout level is at the same level as Initiative The...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    So the pattern I use for hierarchies is to check the scope from the deepest level on up.

     

    See if this makes sense to you:

    Status Switch =
    SWITCH (
        TRUE (),
        ISINSCOPE ( Story[Issue Key] ),      SELECTEDVALUE ( Story[Status] ),
        ISINSCOPE ( Epic[Issue Key] ),       SELECTEDVALUE ( Epic[Status] ),
        ISINSCOPE ( Initiative[Issue Key] ), SELECTEDVALUE ( Initiative[Status] ),
        ISINSCOPE ( Rollout[Issue Key] ),    SELECTEDVALUE ( Rollout[Status] )
    )

     

    If you aren't familiar with SWITCH ( TRUE(), ... ), I recommend reading this:

    https://p3adaptive.com/2015/03/the-diabolical-genius-of-switch-true/