Forum Discussion

shiggs8's avatar
shiggs8
Frequent Visitor
4 years ago
Solved

Add calculated column based on the matching values in other columns

Hi, I am looking to create a calculated column based on the rows in 4 other columns. So what I want to do is if store no, order no, customer no and date are the same, and if 'Bad Debt Amount' >0 in a...
  • amitchandak's avatar
    4 years ago

    shiggs8 , create new column like

     

     

    new column =
    var _sum = calculate(sum([Bad Debt Amount]), allexcept(Table, [store no],[order no],[customer no] ,[date]))
    return
    if(_sum >0 , "Bad Debt",[Trans Type])