Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Help with a formula

I have a question, how can I make this formula in a data table in power Bi? =IF(COUNTIF(NCN[Lotid],[@LOTID])>0,1,0)     I have a question, how can I make this formula in a data table in power Bi?...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi,

    in Power Query, you have to

    merge Anodes with NCNs, in left join mode,

    expand the NCNs column in the Anodes query selecting only LotID column

    add conditional column in the Anodes query setting if NCNs.LotID = null then 0 else 1

    remove NCNs.LotID column

     

    Regards

    Lorenzo