title: Google Visualization: Create Data View from Filtered Table
body: <p>Is there an 'built in' way to create a data view from a dashboard table using only the visible rows? I want to know before I code an unnecessarily long winded alternative!</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I missed this in the Reference docs but it doesn't completely solve the problem since you still have to do some jiggery pokery to get the status of the active filters on the dash and pass them to the getFilteredRows() method.</p>
  
  <p>You can use the getFilteredRows() method which "Returns the row indexes for rows that match all of the given filters. The indexes are returned in ascending order. The output of this method can be used as input to DataView.setRows()"</p>
  
  <p><a href="https://developers.google.com/chart/interactive/docs/reference#DataView" rel="nofollow">https://developers.google.com/chart/interactive/docs/reference#DataView</a></p>