Forum Discussion

AlexanderPowBI's avatar
AlexanderPowBI
Resolver I
2 years ago
Solved

Understanding DAX Filter Context with Nested Measures in Power BI

Hello everyone, I am working on a Power BI project where I have encountered an issue with DAX measures and filter contexts. To make it simple, let's say I have a base measure defined as: ```DAX A ...
  • lbendlin's avatar
    lbendlin
    2 years ago

    Revising the data model is always a good option. Oftentimes report issues go away when the data model is more robust.  You can choose the level of normalization - don't go overboard though, you won't be happy with a 6NF for example.  Generally the data model has to follow the business question.

     

    My personal recommendation is not to nest measures. Others will have different opinions.  I already have a hard time following the context transitions with a single measure, I don't need the mental gymnastics with nested measures.  The "code reuse" aspect is valid, but only if you are absolutely sure that your measure is as optimized as it can be.  Otherwise you risk re-using bad measures over and over.