You can chose to sort on a field (right click Ciadad, sort). Unfortunately you can't sort on the table calculation %falla. I'm not sure what can be done - maybe someone else has an idea.
You can make Tableau sort on calc fields by duplicating them and making them discrete. See the attached solution.
I added a calc to work out the total height of each bar ("FALLA total"). I then put that onto the worksheet, made it discrete and put it to left of Ciudad on the column shelf. And then I hid (by unticking Show Header).
If you want it sorted in the other direction, make a new calc:
sort option AJC.twbx.zip 23.5 KB
Beautiful ! ! ! !
Works great on real data
Thanks a lot Andy