filtering repeater based on profile dataset value.

Hi everyone ! can some please help me. I have a repeater that i want it to only show(filter) items based on another dataset (profile dataset) that has a value specific to that users profile’s community

profile dataset: belongs to a community A

Reptear: will only show all users will in community A

but: if user belongs to community b the repeater will only show all community b