Can I make interaction between views relations and views arguments?
Thanks for the suggestions Andrew, I ended up creating a custom argument-handler. It adds one (or more) extra conditions to the join. LEFT JOIN ... AND ....



function query($group_by = FALSE) {
  $this-&gt;ensure_my_table();

    $this-&gt;query-&gt;table_queue[$this-&gt;table_alias]['join']-&gt;extra = array(
      array('table' =&gt; $this-&gt;table_alias, 'field' =&gt; $this-&gt;real_field, 'value' =&gt; $this-&gt;argument),
    );
  }
}