title: Group rows after applying user filter in Power BI
body: <p>Is there any method in Power bi where I can apply the date filter first, and then group the rows based on a column to get aggregate data.</p>
  
  <p>example Input data</p>
  
  <p><a href="https://i.stack.imgur.com/164ck.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/164ck.png" alt="enter image description here"></a>
  When I select date range from 2017-10-24 to 2017-10-27,I need it to be like</p>
  
  <p><a href="https://i.stack.imgur.com/DkYWR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DkYWR.png" alt="enter image description here"></a> </p>
  
  <p>Basically I need to filter data first with the date and then group it with respect to EmpId.</p>