Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Model Relationship vs SWITCH vs Custom Matrix.

Hello All,  This time I have following issue...   For the following funcions and following model funcion SWITCH works well     BUT for the following model an...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Anonymous 

     

    It's easy to explain the behaviour if you know how filters interplay with CALCULATE, especially nested CALCULATE's.

     

    In the first example, the table 'Admin Categories' does not filter anything, even if you put its columns in a visual; hence you can see values. In the second example, 'Admin List' filters 'Admin Account'. Now, if you put a column from 'Admin List' in a visual, 'Admin Account' gets cross-filtered and the filter is "Gross Margin Level..." Hence, only rows which join to this value are visible in the current context. Since your measures [1] and [2] filter (in their definition) on the field 'Admin Account'[Level 1] and the values you want to filter by have been eliminated by the filter coming from 'Admin List'... well, therefore blank is returned.