Ratio Formula

Hi! I need help to use the beast mode function. I have the following columns:

Name, Ref #, Paid Amount, Savings Amount and Bill Amount.

I want to get the Ratio of Each Name using this formula:

Paid Amount + Savings Amount / Bill Amount

Thank you!

Best Answers

  • ColemenWilson
    edited November 20 Answer ✓

    You would create a beast mode with the following code:

    (SUM(`Paid Amount`) + SUM(`Savings Amount`)) / SUM(`Bill Amount`)

    Then you'd create a table card with the first column being the Name and the second column being the beast mode you create.

    Here is a video on how to create a beast mode:

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

  • ArborRose
    ArborRose Coach
    Answer ✓

    Use add beast mode to create a new calculation using a formula like

    ( `Paid Amount` + `Savings Amount` ) / `Bill Amount`

    Domo uses back ticks to enclose field names. Name it something like "Ratio". Save it and make sure it validates properly.

    Also make sure you have no null or zero values in Bill Amount. Otherwise you will get division errors.

    CASE 
    WHEN `Bill Amount` = 0 THEN NULL
    ELSE ( `Paid Amount` + `Savings Amount` ) / `Bill Amount`
    END

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

Answers

  • ColemenWilson
    edited November 20 Answer ✓

    You would create a beast mode with the following code:

    (SUM(`Paid Amount`) + SUM(`Savings Amount`)) / SUM(`Bill Amount`)

    Then you'd create a table card with the first column being the Name and the second column being the beast mode you create.

    Here is a video on how to create a beast mode:

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

  • ArborRose
    ArborRose Coach
    Answer ✓

    Use add beast mode to create a new calculation using a formula like

    ( `Paid Amount` + `Savings Amount` ) / `Bill Amount`

    Domo uses back ticks to enclose field names. Name it something like "Ratio". Save it and make sure it validates properly.

    Also make sure you have no null or zero values in Bill Amount. Otherwise you will get division errors.

    CASE 
    WHEN `Bill Amount` = 0 THEN NULL
    ELSE ( `Paid Amount` + `Savings Amount` ) / `Bill Amount`
    END

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • OllyB
    OllyB Member

    Awesome example and explanation!