Help with column formula

Options

I am trying to do an a calculation and having some trouble. The formula in my Average Daily Usage column is (Oil Usage / Run TIme Hours) * 24

I guess the formula is technically working when look at columns, but I want this formula to calculate for the subtotal columns when i select a range of dates. So the column in blue for Average Daily Usage should be 1.714 not 2.34. How do I accomplish this? Guess i might need to make some adjustments in ETL

Tagged:

Best Answers

  • Sean_Tully
    Sean_Tully Contributor
    Answer ✓
    Options

    Try this: (sum(Oil Usage) / sum(Run TIme Hours)) * 24

    I think the aggregation in the beast mode will make it work correctly. Right now it's totaling the column for you instead of doing the calc for the full oil usage and run time hours.

  • ColemenWilson
    edited June 18 Answer ✓
    Options

    Wouldn't the average be 0.58?

    Just wrap your beastmode with AVG()

    AVG((Oil Usage / Run Time Hours) * 24)

    Or change the aggregation type to Average for that field.

    If I solved your problem, please select "yes" above

Answers

  • Sean_Tully
    Sean_Tully Contributor
    Answer ✓
    Options

    Try this: (sum(Oil Usage) / sum(Run TIme Hours)) * 24

    I think the aggregation in the beast mode will make it work correctly. Right now it's totaling the column for you instead of doing the calc for the full oil usage and run time hours.

  • ColemenWilson
    edited June 18 Answer ✓
    Options

    Wouldn't the average be 0.58?

    Just wrap your beastmode with AVG()

    AVG((Oil Usage / Run Time Hours) * 24)

    Or change the aggregation type to Average for that field.

    If I solved your problem, please select "yes" above