rodrigo-l-santos-alb opened a new issue, #34352:
URL: https://github.com/apache/superset/issues/34352

   ### Bug description
   
   When creating a bar chart there is the option to sort the x-axis or y-axis 
when in horizontal mode. This dropdown option presents different values when a 
dimension is defined in the section "DIMENSIONS" compared to when there is no 
dimension defined. 
   In our case we want to order the x-axis by another column in our dataset, so 
we fill the "SORT BY" section as follows:
   
   <img width="327" height="119" alt="Image" 
src="https://github.com/user-attachments/assets/6cc99191-f326-43d9-9ffe-4273d0082afe";
 />
   
   then we get the following options to sort the x-axis, which work well and 
allow us to order the x-axis by that dataset column:
   
   <img width="324" height="682" alt="Image" 
src="https://github.com/user-attachments/assets/c8376593-5dda-40f7-9de3-e16cf18aa01c";
 />
   
   however, when we define a dimension to present our metric stacked by that 
dimension the options to sort the x-axis change to this:
   
   <img width="325" height="703" alt="Image" 
src="https://github.com/user-attachments/assets/dee88e08-29aa-4fc3-9d24-82df0ab1f152";
 />
   
   This way we are not able to order the x-axis by the order column in our 
dataset.
   
   Thank you for your time in advance.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   4.1.3
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to