Enrique Cebrian Posted October 28, 2020 Share Posted October 28, 2020 Hello there! I know this is hard to believe but... I have an issue in a project wasn't developed by myself. I need to represent a field in a bubble-chart that could have text or numbers. This field is a String, so there shouldnt be any problem (of course isnt a best practice but... you know, business as usual). The point is that, the customer want to have it orderedby numbers when numbers and by alphabetic order when text. And the most I can achieve at the moment is having it ordered without sign (in the numbers, there are negative numbers... see the image attached). I thought to use the custom expression in the variable by using the FIND or RXReplace functionbut, as itis a external source (SQL Server), no way to use Spotfire regex (see post: https://community.spotfire.com/questions/rxreplace-add-function), also I have triedwith an IF (Var%1 = 0, cast as currency, Var)- i dont really know if this is going to work but... wanted to try -but it sais "Invalid Type function call if" (see post:https://community.spotfire.com/questions/invalid-type-function-call-if). any ideas Thank you in advantage! Link to comment Share on other sites More sharing options...
Corey Scherrer 3 Posted October 29, 2020 Share Posted October 29, 2020 Will it always be either ALL numeric or ALL text Or can it have both Link to comment Share on other sites More sharing options...
Enrique Cebrian Posted October 29, 2020 Author Share Posted October 29, 2020 all numeric (from -infinit to + infinit) and all text (products like Tomato) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now