metabase / metabase/metabase

Manual ordering of dimension values (row, column headings) in pivot tables (drag-and-drop reordering)

Open
#63,696 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

.Project candidate Type:New Feature Visualization/Pivot
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

Is your feature request related to a problem? Please describe
Currently, pivot table rows are ordered alphabetically (by a value), but this doesn’t work for structured reports where the order of rows follows a logical hierarchy.

For example, financial reports like income statements have categories in a set order(Income → Cost of Goods Sold → Gross Profit → Expenses → Operating Profit → Other Income & Expenses → Net Income).

Describe the solution you'd like
Being able to manually reorder pivot table dimension values directly in the visualization or in the visualization settings, ideally through drag-and-drop (similar to how funnel steps can be manually ordered in the chart settings).

This would allow users to define custom sequences without touching the underlying query.

Describe alternatives you've considered
The workaround today is to build custom SQL with a manual “order column,” but this approach is brittle and hard to maintain across customers with different naming conventions (e.g., “Revenue” vs. “Income”, “Opex” vs. “Expenses”).

How important is this feature to you?
Customer:

It would literally make me cry tears of joy if we could just rearrange the order of rows somehow.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Start by locating the pivot-table visualization and settings code, then compare it with the existing funnel-step manual ordering; done means users can define and preserve a custom dimension-value order without changing the query.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.