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
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 664 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 825 Beast Mode
- Visualize
- 2.6K Charting
- 88 App Studio
- 46 Variables
- Automate
- 195 Apps
- 486 APIs & Domo Developer
- 94 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive