docs: add custom ordering for categorical values recipe#10671
Conversation
Add a recipe showing how to sort categorical dimensions (e.g., pipeline stages) in a business-meaningful order using a CASE expression, both at query time in semantic SQL and as a permanent dimension in the data model. Made-with: Cursor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Claude finished @keydunov's task in 1m 39s —— View job Review of PR #10671
Overall: This is a well-written recipe that clearly explains two approaches to custom ordering of categorical values. The writing is clean, the examples are practical, and the structure follows existing recipe patterns well. A few minor items below. Issues1. Result table column name mismatch (minor) The result table at line 167 uses Since the "Result" section says "Both approaches produce the same result," the table is slightly misleading for the data model approach where the column would actually be named
2. Unused reference links (nitpick) Two reference-style links defined at the bottom of
These are harmless but add unnecessary clutter. Consider removing them or adding relevant cross-references to the existing Custom sorting recipe (which covers REST API-level sorting and could be a nice "see also" from this recipe). Looks Good
|
Add a recipe showing how to sort categorical dimensions (e.g., pipeline stages) in a business-meaningful order using a CASE expression, both at query time in semantic SQL and as a permanent dimension in the data model.
Made-with: Cursor
Check List