Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Losing context transition when using CALCULATE inside ADDCOLUMNS

Hello,   I have executed the below command in DAX Studio. As you can see I am introducing the column  'Product'[Color]  in the rows (in SUMMARIZE) and then I define 3 different measures.   EVALU...
  • CNENFRNL's avatar
    CNENFRNL
    6 years ago

    Hi, Anonymous , I think you came across almost the exactly same problem mentioned in this article: https://www.sqlbi.com/articles/context-transition-and-expanded-tables/

     

    I totally agree with Fowmy . The issue is all about the very tricky way FILTER() evaluates within a CALCULATE(); to be exact, what on earth the filter context is, in which FILTER() evaluates. As mentioned in the above-referenced article,

    CALCULATE executes context transition, but its filter parameters get evaluated in the original filter context, not in the one modified by CALCULATE.