title: Displaying the value in a Laravel Nova Value metric
body: <p>I need to show the sum of the <code>price</code> column of model <code>Foo</code>. Right now I can do it with this.  </p>
  
  <pre><code>    public function calculate(Request $request)
      {
  
          return $this
              -&gt;sum($request, Contribution::class, 'contribution_amount')
              -&gt;dollars();
      }
  </code></pre>
  
  <p>Which show the following output. </p>
  
  <ul>
  <li>For sum of <code>22</code> => <code>$22</code> </li>
  <li>For sum of <code>3120</code> => <code>$3.10k</code></li>
  </ul>
  
  <p>I need to just show <code>$22</code>, <code>$3120</code> without any formatting. I tried to override the aggregate function but it still doesn't give me the correct output format. </p>
  
  <pre><code>protected function aggregate($request, $model, $function, $column = null, $dateColumn = null)
      {
          $query = $model instanceof Builder ? $model : (new $model)-&gt;newQuery();
  
          $column = $column ?? $query-&gt;getModel()-&gt;getQualifiedKeyName();
  
          $previousValue = with(clone $query)-&gt;whereBetween(
              $dateColumn ?? $query-&gt;getModel()-&gt;getCreatedAtColumn(), $this-&gt;previousRange($request-&gt;range)
          )-&gt;{$function}($column);
  
          return $this-&gt;result(
              with(clone $query)-&gt;whereBetween(
                  $dateColumn ?? $query-&gt;getModel()-&gt;getCreatedAtColumn(), $this-&gt;currentRange($request-&gt;range)
              )-&gt;{$function}($column)
          )-&gt;previous($previousValue);
      }
  </code></pre>
  
  <p>Can anyone give a pointer here? </p>