Forum Discussion

Jeanxyz's avatar
Jeanxyz
Power Participant
4 years ago
Solved

values() vs row context

Hi,    I am trying to understand row context in values() formula. In the printscreen, I have created a calculated column using values(sales[product category]) as the interation context.    I'm no...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    In this case, it's using the row context from the table argument values(sales). It iterates over each row in this table using the row context from this table.

     

    When you write values(sales[product category]), this does not contain the [sales amount] and [retail margin] columns, so these cannot be from that row context and it instead interprets it as the original row context.