Create views operation in automating google spreadsheet usecase

How can we perform create views using filter operation in google spreadsheet?