Cant sort on a specific column suing rank and custom function
when I create a calculated field using this formula and this is created as Ranking
CASE WHEN
RANK() OVER (PARTITION BY SUB_CATEGORY_TXT
ORDER BY SUM(SALES_LC_AMT
) DESC) >=6 THEN 1000
ELSE RANK() OVER (PARTITION BY SUB_CATEGORY_TXT
ORDER BY SUM(SALES_LC_AMT
) DESC)
END
now when I drag and drop Ranking to filtering, it says "An issue has occurred during processing. We are unable to complete the request at this time.
"
Best Answer
-
When you add a window function to the filter section, you will need to make sure that you partition by everything that is getting partitioned in the table or graph. For example, it looks like you have two fields, "SUB_CATEGORY_TXT" and "Manufacturers" in the table, but you are only partitioning your calculated field by the former. Try partitioning by both fields and see if that helps.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0
Answers
-
When you add a window function to the filter section, you will need to make sure that you partition by everything that is getting partitioned in the table or graph. For example, it looks like you have two fields, "SUB_CATEGORY_TXT" and "Manufacturers" in the table, but you are only partitioning your calculated field by the former. Try partitioning by both fields and see if that helps.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0
Categories
- All Categories
- 1.5K Product Ideas
- 1.5K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 278 Workbench
- 4 Cloud Amplifier
- 4 Federated
- 2.7K Transform
- 89 SQL DataFlows
- 560 Datasets
- 2K Magic ETL
- 3.3K Visualize
- 2.3K Charting
- 575 Beast Mode
- 13 App Studio
- 28 Variables
- 584 Automate
- 142 Apps
- 415 APIs & Domo Developer
- 26 Workflows
- 1 DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 356 Distribute
- 95 Domo Everywhere
- 259 Scheduled Reports
- 2 Software Integrations
- 92 Manage
- 89 Governance & Security
- 9 Product Release Questions
- Community Forums
- 42 Getting Started
- 28 Community Member Introductions
- 89 Community Announcements
- 4.8K Archive