Percent of Total on Table Chart

Reply
Highlighted
Orange Belt

Percent of Total on Table Chart

Can someone give me some assistance in displaying the percentage of total for a column on a table chart? I have a table with a count of employees by gender and this works fine on a pie chart using %_PERCENT_OF_TOTAL however someone would like it in a table.

 

Thanks.

Highlighted
Black Belt

Re: Percent of Total on Table Chart

You'll need to edit your ETL process to add a column that provides the 'Total' for that metric and repeats it for each row. 

Example: 

Measure    Total

1                 10

4                 10

5                 10

 

Then at the card level you can do 

SUM(`Measure`) / MAX(`Total`) * 100

That will give the 'Percent of Total' you're looking for.

 

Let me know if you have any other questions,

Valiant

 

 

Highlighted
Black Belt

Re: Percent of Total on Table Chart

That being said.  I think that a cross table is a fairly common analytical tool that seems to be missing from Domo currently.  I think I'll add this as a feature request.  Cross Table Cardcross table.png

 

You can vote for the idea here: https://dojo.domo.com/t5/Ideas-Exchange/Cross-Table-Card/idi-p/35262#M6648

 

 


______________________________________________________________________________________________
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman
______________________________________________________________________________________________
Highlighted
Major Blue Belt

Re: Percent of Total on Table Chart

Hello, Valiant,

 

I did the % calculation as you suggested and got the %.  However, for my table card, if I only want to see top 10 rows and % calcualtion is based on the total of the top10.  Is there a way to do this?

 

Thank you.

 

Olivia

Highlighted
Orange Belt

Re: Percent of Total on Table Chart

You can use SQL functions in Beastmode (not documented though).

Try this:

SUM('field name')/SUM(SUM('field name')) OVER ()

Highlighted
White Belt

Re: Percent of Total on Table Chart

Love it - thanks for posting! 

Highlighted
Red Belt

Re: Percent of Total on Table Chart

If you haven't worked with Windowed Functions before, I give a longer (15min) answer on YouTube for a related use case.

 

https://www.youtube.com/watch?v=ZPf41Fjn1H8


Jae Wilson
Check out my Domo Training YouTube Channel

**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"
https://dojo.domo.com/t5/Beast-Mode-ETL-Dataflow/How-to-create-a-beast-mode-for-email-open-rate/m-p/47300#M8035 TLDR Grand Total over the entire dataset sum(...
Announcements
Coming Soon: Weekly Virtual User Meet-ups to answer all your questions! Stay tuned for more details to come this week.