Reply To: Xprofile fields – Per Member Visibility
you will find some usefull posts about this on the codex.
Add custom filters to loops and enjoy them within your plugin
https://codex.buddypress.org/plugindev/playing-with-the-users-id-in-different-contexts/
https://codex.buddypress.org/plugindev/using-bp_parse_args-to-filter-buddypress-template-loops/
Searching on the forum can also help.
https://buddypress.org/support/search/xprofile+conditionnal+fields/