title: In Tableau, how to calculate weighted average on a daily basis?
body: <pre><code>My data looks like below:     
  unit price    quantity     salesperson   date
  $10             5               A         1/1
  $10             6               B         1/1
  $30             9               A         1/1
  $30             10              B         1/1
  $10             3               A         1/2
  $10             5               B         1/2
  $20             7               A         1/2
  $20             8               B         1/2
  </code></pre>
  
  <p>In Tableau, how to calculate the average daily unit sales price each salesperson made? Suppose unit price and quantity are measures, salesperson and date are dimensions. </p>
  
  <p>Thanks a lot!</p>