How to filter a view relating node and user data?
You can add the same filter programmatically to your view.

/**
 * Implements hook_views_pre_view().
 */
function YOURMODULE_views_pre_view(&amp;$view, &amp;$display_id, &amp;$args) {
  if ($view-&gt;name == 'your_view_machine_name') {
    $info = array(
      'table' =&gt; 'field_data_field_points', // name of your “Points” field table.
      'field' =&gt; 'field_points_value', // name of value field in that table.
      'value' =&gt; array('value' =&gt; userpoints_get_current_points()), // dynamic part.
      'operator' =&gt; '&lt;',
      'id' =&gt; 'field_data_field_points_YOURMODULE', // unique id.
      'group' =&gt; 100, // new group.
    );
    $handler = views_get_handler($info['table'], $info['field'], 'filter');

    $handler-&gt;init($view, $info);
    $view-&gt;display_handler-&gt;handlers['filter'][$info['id']] = &amp;$handler;

    unset($handler);
  }
}


It will automatically join the table and add condition to query.