create a card to display a number ranking
can anyone point me in the right direction on how to create a card with a number ranking that will auto update? we give the sales people a score based on their activities. the one card will put them in order based off their activity score total. how do I create a separate card to just populate their Activity Score Rank? (i.e. 1st 2nd 3rd 4th 5th or 6th) the card I have now, I have to manually update. looking to automate it
Best Answer
-
@ScottLeeds You need to use two aggregations for this to work.
SUM(SUM(1)) over….
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman1
Answers
-
You can use a window function for something like this:
SUM(SUM(1)) OVER (ORDER BY `Score` DESC)
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
I hope I'm saying this correctly. The column I'm trying to use is a beast mode so it's not showing as an option. To put in the actual column name instead of the `Score` example you gave.
0 -
@ScottLeeds you can copy the score beast mode and paste it into Grant's formula.
sum(1) over (order by (paste your beastmode here enclosed in parenthesis))
Also, make sure you have card interactions set up on the lead card so that the rank card knows to update with the salesman clicked on in that card.
0 -
You probably want:
sum(1) over (order by (beast mode formula)desc)
otherwise it will rank the lowest score 1st rather than last.
0 -
@jessdoe now it just populates whatever number I put in the parenthesis after sum
0 -
@ScottLeeds if you aggregate the sum again as in Grant's formula does that give you your rank back?
sum(sum(1)) over (order by (beast mode formula)desc)
0 -
@jessdoe that didn't work either
0 -
Can you paste your beastmode @ScottLeeds
0 -
0
-
@ScottLeeds You need to use two aggregations for this to work.
SUM(SUM(1)) over….
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman1
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.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 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