How to turn my data into an 1-0 table?

I have a data like this.

and what if I want to turn this data into an 0-1 table base on the NO. like the below example in Knime?

 

with the one2many node.

Best, Iris

I tried it out, really work.

Thanks, Iris.