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….
1
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….
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 755 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive