I am trying to filter my packets based on whether or not they went through specific switch. This router has the ip address of 192.168.1.235. Is their a way to do this using Wireshark filters?
Switches do not alter frames that run through them. Accordingly, there is no way to filter them by that.
Routers are directly addressed on the link layer, so you can filter for frames coming from or destined to a locally connected router by using a capture filter for its MAC address like
ether host 00:11:22:33:44:55.
If you want to capture frames by switch, you need to set up port mirroring (SPAN or RSPAN on Cisco) and capture frames on the monitor port. If it's an unmanaged switch you'll need to temporarily connect a managed one. For 10/100 interfaces where throughput doesn't matter much, you could use a repeater hub and capture all frames off any of its ports.