title: Group rows by day/week/month till date in Elixir
body: <p>Group rows by day/week/month using inserted_at column.<br>
  Example : If first row is created before 1 week then group by days and if any data is not created in middle date then add o as value.</p>
  
  <pre><code>[
   {"21 Jul" =&gt; 12},{"22 Jul" =&gt; 0},{"23 Jul" =&gt; 3}, {"24 Jul" =&gt; 1}...
   {"5 Aug" =&gt; 0}
  ] 
  </code></pre>
  
  <p>Thanks in advance. </p>