Datasets

Datasets

Grand Total to Show as Average instead of Sum

I'm trying to get my Grand Total for Revenue as an example to show as an average instead of a sum in a Mega Table. My Revenue calc is below.

SUM

(CASE

  1. WHEN

  2. (`Source` = 'Order Items' AND `OrderItems.Type` = 'SpaceOrder' AND `Rank_DateRunOrderItems` = 1) AND
  3. `Reservation.State` != 'Canceled' AND
  4. `Enterprise.Name` IS NOT NULL

  5. THEN

  6. `Amount.NetValue`

  7. ELSE

  8. 0

END)

Comments

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In