% of Total
Hey there, I'm trying to create a % of total column for my dataset with various domains.
Issue is, there's multiple rows with the same values as others.
Tried to perform a group by domain then rank by video plays with a partition by url, but it is not working.
Thought maybe a window function could work, but I would need it to be distinct since each url is different.
I don't think it's possible to do for each domain individually cause my original dataset has 937k rows and about 30+ domains, but if I have to...
I also wanted to know, is there a way to perform rank if you have multiple rows with the same value?
Similar Example of my table
Domain | Video Plays | Topic | URL |
abc.com | 1 | Dinosaurs | abc.com/hgffdjnhgdjn |
bec.com | 214 | Hippos | xyz.com/gsGEG |
abc.com | 156 | Alligator | bec.com/agreah |
bec.com | 2 | Rhino | abc.com/gaggb |
dbhiaf.com | 269 | Bear | bhiaf.com/agregher |
efg.com | 569 | Deer | efg.com/fgfhgsh |
hikj.com | 45 | Kiwi | hikj.com/hfgshtf |
jijk.com | 92 | Platypus | efg.com/fdsGS |
efg.com | 92 | Narwhal | dbhiaf.com/gsgsge |
efg.com | 92 | Beaver | jijk.com/gsdagre |
efg.com | 879 | Ant | jijk.com/gdagaerd |
jijk.com | 214 | Kangaroo | dbhiaf.com/gahreah |
bec.com | 1 | Dolphin | abc.com/greagraeg |
dbhiaf.com | 2 | Giraffe | dbhiaf.com/graehaerh |
abc.com | 214 | Emu | xyz.com/agrage |
xyz.com | 300 | Mouse | xyz.com/fresgr |
jijk.com | 214 | Snake | jijk.com/cdsfaGF |
I think down the road, I will need to separate the domains from each other and locate % of total that way too, but that may be asking for too much.
Comments
-
it is unclear to me why you need rank for percent of total.
assuming you have Domains on the axis you could get each domain's percent of total with
sum(video_plays) / sum(sum(video_plays))
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Oh! Yeah, I want to get the percent of total on each domain separately, but I don't think it possible.
And then a rank on each domain separately.
0 -
Oh no, I also am getting an error. It won't let me display this in a table.
0 -
? can you be more specific about the error?
Window Functions require feature enablement, contact your CSM and ask them for "Window functions in Beast Modes"
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
I've contacted my CSM.
The window functions are enabled, but I will contact my CSM to see if there's a bug.
0 -
I'll return once the window functions are fixed to accept to the solution.
It could be my data maybe?
0 -
... there's nothing wrong with Window Functions AFAIK. It's either enabled or it's not. From there users usually havea problem in their code.
I've covered tons of window functions on my YouTube channel, https://www.youtube.com/watch?v=eifSYZIcPzg
Jae Wilson
Check out my 🎥 Domo Training YouTube Channel 👨💻
**Say "Thanks" by clicking the ❤️ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
Thanks so much with helping me on this and sourcing me with your content. Your vids have definitely helped me adjust to DOMO a lot easier. I'll have to look at this video later today.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive