title: Date difference by grouping column value
body: <p>Sorry if it seems easy. I want to do calculation in this way by using excel formula
  inside the same Filename, take the startDate where memo=&quot;begin&quot; and the endDate where memo=&quot;end&quot; and make the difference in minute in duration.</p>
  <p>I searched about groupby function but i can't found how to do this by fileName grouping</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Line</th>
  <th>fileName</th>
  <th>startDate</th>
  <th>endDate</th>
  <th>memo</th>
  <th>duration</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>aa.docx</td>
  <td>2020-12-07 04:30:00.000000</td>
  <td>2020-12-07 04:31:00.000000</td>
  <td>begin</td>
  <td></td>
  </tr>
  <tr>
  <td>2</td>
  <td>aa.docx</td>
  <td>2020-12-07 04:30:00.000000</td>
  <td>2020-12-07 04:30:01.000000</td>
  <td>other</td>
  <td></td>
  </tr>
  <tr>
  <td>3</td>
  <td>aa.docx</td>
  <td>2020-12-07 04:30:00.000000</td>
  <td>2020-12-07 04:30:04.000000</td>
  <td>other</td>
  <td></td>
  </tr>
  <tr>
  <td>4</td>
  <td>aa.docx</td>
  <td>2020-12-07 04:30:00.000000</td>
  <td>2020-12-07 04:33:00.000000</td>
  <td>end</td>
  <td>3</td>
  </tr>
  <tr>
  <td>5</td>
  <td>bb.docx</td>
  <td>2020-12-07 08:30:00.000000</td>
  <td>2020-12-07 08:31:00.000000</td>
  <td>begin</td>
  <td></td>
  </tr>
  <tr>
  <td>6</td>
  <td>bb.docx</td>
  <td>2020-12-07 08:30:00.000000</td>
  <td>2020-12-07 08:30:01.000000</td>
  <td>other</td>
  <td></td>
  </tr>
  <tr>
  <td>7</td>
  <td>bb.docx</td>
  <td>2020-12-07 08:30:00.000000</td>
  <td>2020-12-07 08:30:04.000000</td>
  <td>other</td>
  <td></td>
  </tr>
  <tr>
  <td>8</td>
  <td>bb.docx</td>
  <td>2020-12-07 08:30:00.000000</td>
  <td>2020-12-07 08:34:00.000000</td>
  <td>end</td>
  <td>4</td>
  </tr>
  </tbody>
  </table>
  </div>