Edge flange of rolling sheetmetal

Dear all,

I have a rolling sheetmetal part. When I add the edge flange I cann't flatten. So could you help me the best way to make it.

SolidworksSheet Metal