How to create the BOM like this?

Hello,

I want to create the BOM table like this for an assembly with some configuration like the picture on attachment.

Please show me how to create the BOM table like this.

Thanks all

SolidworksBill Of Materials