title: Using aggregation within a calculated field in Amazon QuickSight
body: <p>I'm using Amazon QuickSight and want to create a calculated field which in Tableau would be <code>sum([Field1])/sum([Field2])</code>. In QuickSight, I attempted <code>sum({Field1})/sum({Field2})</code> but this did not work ("We encountered an error trying to save your calculated field. Please try creating it again."). Simply doing <code>{Field1}/{Field2}</code> and then applying the sum aggregation in the visualization stage gives me the incorrect value.</p>
  
  <p>How do I apply a SUM within a calculated field?</p>