Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Calculated column looking up for specifc data

Good day all,   Hope someone can help me with the following As you can see, Box A is linked to 2 types of sales (W & P) and 2 customers (1 & 2) I want to add a calculated column.  The formula mu...
  • v-yulgu-msft's avatar
    v-yulgu-msft
    8 years ago

    Hi Anonymous,

     

    Column =
    VAR Customer = test[adres_cod]
    VAR BOX = test[container_nr]
    VAR Sales = "PTI&OFFH"
    RETURN
        CALCULATE (
            FIRSTNONBLANK ( test[adres_cod], 1 ),
            test[container_nr] = BOX,
            test[occ_act_group] = Sales,
            ALL ( test )
        )

    Best regards,

    Yuliana Gu