# find % of row value vs. column total

I have a column of various quantities and I want to find the % value of the specific row value when compared to the column total of quantity.  Is this possible in Beast Mode or Dataflow?

• I think I have the exact same question. See screenshot below for question. I'd like a column that would be 325,965 / 959,627  or 34.0% and so on for each subsequent row.

• Hi all,

Can anybody help @kivlind and @mwade out?

Thanks!

• domo

💎

Sadly in beastmode we cannot calculate this. We will need to use a dataflow to accomplish this.

Using a Magic ETL:
In ETL we first want to replicate our card.

2. If your card has any filters you want to apply them next, using "Filter Rows"
3. We will now use "Add Constants" to add a constant text column of 1

4. Now using group by we are going to group by "1" and aggregate our value column
1. If you have multiple Value columns you want to aggregate all of them in this step.
5. You should now have a column with a single value in it.
1. This is your total for that column
6. You now will want to join this to our original data.From the orignal data we are going to use "Add Constants" and add a constant text column with a value of 1
7. We now can join our input dataset to our single value.
8. Add a Select Columns and remove your columns 1 and 1_1

You can now create a card from this Magic ETL. You will now have a column that contains a total value.

You can now create a beastmode to find the percent.

`SUM(`value_column`) / MAX(`total of value`)`

This should give you your percentage.

**Say “Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"
• Any chance this can get added to the development plan? We need to calculate this % to Total dynamically, based on what the group by is on the card.

• Hi,

Can you explain what OVER() is? I don't think it is found within the Beast mode function list.

Thanks.