Table: Sort value mapped column by display text, not by value #43280
Replies: 7 comments 1 reply
-
Moving this to a discussion as it seems more like a feature request for the current table panel. |
Beta Was this translation helpful? Give feedback.
-
I've just encountered the same issue. Network device port listing, and applied the following value mapping to be able to sort them sequentially: ^eth([0-9]?)/([1-9])$ >> eth$1/0$2 And found that the sort happens before the mapping, not after as I had expected. |
Beta Was this translation helpful? Give feedback.
-
Having diffrent types of sorts should be available for the table panel to account for lists of:
@dmgeurts cool workaround for basic use-cases, too bad it does not work in the current table. |
Beta Was this translation helpful? Give feedback.
-
I have a table where 1 maps to Yes and 0 or null map to No. I can't get all the "No" values to sort together because the table is sorting before the mapped value. It would be helpful to have an override where I could toggle between sort by "value" or "mapped value". |
Beta Was this translation helpful? Give feedback.
-
I have the same problem with a column consisting of URLs. I'm using a regular expression in a field override for value mapping. It removes the leading http[s]:// and everything after the next slash (after the TLD). The table shows the values correctly, but when I sort the column, it will be sorted according to the values before the override. In this case, everything which started with "http://" will be shown before (or after, depending on direction) any value that started with "https://" before the override. Grafana Version is 9.4.7, with Prometheus as the Data Source |
Beta Was this translation helpful? Give feedback.
-
This epic has an "Allow value mappings to happen before a transformation" feature request, which would solve this issue, but it's apparently closed for further discussion. Hopefully there's an update on it soon. |
Beta Was this translation helpful? Give feedback.
-
Hello, as you may have heard, we are transitioning away from using discussions to discuss feature requests. We are migrating this discussion to an issue and closing the discussion. The issue is #83013. Feel free to continue the discussion around this there. Thank you! |
Beta Was this translation helpful? Give feedback.
-
What happened:
When using value mapping for one of a column in my table, I want to sort this column by display text. But it can be sorted only by source values.
For example
In this case, I never get text ordered as ABC or CBA, only BAC or CAB
What you expected to happen:
I want to sort data in column by display text instead of values
Environment:
Beta Was this translation helpful? Give feedback.
All reactions