Q:

User list with View: display only on role

In addition to the Administrator role, I've created several roles. I'm still using the Administrator role for users who needs administrator access. 
However, in my user list, I've created with Views, I'd like to hide the Administrator role, so it only displays the one role I've chosen instead of listing all the roles associated to the user.
I've already configured a filter criteria where I haven't included the Administrator role and only the roles I'd like to display, but Views disregards this and display the Administrator role. 

You can see the members page here: You can see the list here: http://xpeek.dk/sas-members
I hope any of you can assist me in this.
Regards, Frederik

A:

I think you should use Views PHP module. here you can able to write custom code. May be it'll helpful to you.
You want approx this kind of view? 

For that you should try View Php Module. After that choose Global Php option in field tag and then write your code. I tried this may be it's not feasible, but here is the code.
In output section:-
<?php
$roles = array();
$user = user_load($row->uid);
$roles = $user->roles;
if (array_key_exists("7",$roles)) {
   // admin role has rid 7
   unset($roles[7]);
}

foreach ($roles as $key => $val) {
 echo $val."<br>";
} 

?>

