Find Max rank from a ranking column and fixed it so it doesn't change when filter applied.

verytiredgirl
Member
in Charting
Say I have dataset ranking all the sales rep by their Margin FYTD:
SALES REP | CURRENT MARGIN | RANK |
---|---|---|
A | 0.5 | 1 |
B | 0.4 | 2 |
C | 0.3 | 3 |
D | 0.2 | 4 |
E | 0.1 | 5 |
I'd like to add a text column so instead of rank 1 it's '1 of 5', etc. To do so I need:
CONCAT(`RANK`, ' of ', MAX(`RANK`) FIXED())
which is easy but the hard part is if I'm interested in just 1 or 2 sales rep and their rankings comparing with all the rest, I filter Sales Rep 'A' & 'B',
SALES REP | CURRENT MARGIN | RANK | Desc |
---|---|---|---|
A | 0.2 | 1 | 1 of 2 |
B | 0.3 | 2 | 2 of 2 |
it would show '1 of 2' and '2 of 2' which is just comparing the 2 of them not the rest. So ideally, the Max(rank) should be fixed even when filter is applied so that it show '1 of 5, '2 of 5' even when i have select only 2 people.
Tagged:
0
Answers
-
You can add a FILTER NONE option to ignore all filters applied.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Categories
- All Categories
- Product Ideas
- 2K Ideas Exchange
- Connect
- 1.3K Connectors
- 308 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 661 Datasets
- 117 SQL DataFlows
- 2.2K Magic ETL
- 819 Beast Mode
- Visualize
- 2.6K Charting
- 85 App Studio
- 46 Variables
- Automate
- 193 Apps
- 483 APIs & Domo Developer
- 85 Workflows
- 23 Code Engine
- AI and Machine Learning
- 22 AI Chat
- 3 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 116 Domo Everywhere
- 282 Scheduled Reports
- 11 Software Integrations
- Manage
- 142 Governance & Security
- 9 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 115 Community Announcements
- 5K Archive