title: Calculate percentage of the total in qlik sense
body: <p>I have the following data structure in my qlik sense desktop (version june 2019):</p>
  
  <pre><code>Time           Reference    Relevant
  01.01.2019      1            1
  01.01.2019      2            0
  01.02.2019      3            0
  01.02.2019      4            0
  </code></pre>
  
  <p>And I want to built a line chart, which displays the %-of the Total occuring references per day.</p>
  
  <p>So the values would be:</p>
  
  <pre><code>01.01.2019    0.5
  01.02.2019    0
  </code></pre>
  
  <p>What do I have to write in the formel editor? The expression: <code>Sum(total [Relevant])/Count(total [Reference])</code>is not working.</p>
  
  <p>What is the trick to combine a sum and count with respect to the date?</p>