Katie Sikorski Posted December 1, 2022 Share Posted December 1, 2022 I want to build a rule to color based on a WellStat, I want to add a rule that says If([WellStat] = Drilled, Drilling or Duc I want it Green, If([WellStat] = Permitted Iwant it Blue, If([WellStat] = Active or Completed make it red, can this be done? When I go into add rule custom expression WellStat is not an option even though this is the current layer and I only want to color the map with wells with these status. I tried doing one rule for Permitted it work fine, I tried to add One for Ducs and it did not work with multiple rules what am I doing wrong? Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted December 1, 2022 Share Posted December 1, 2022 Hello Katie,To ensure that any responses are relevant for the particular TIBCO product that you are using, please add a note about what that product is (or edit the question, and select a product in the Product field).If you are using Spotfire, would it be possible for you to provide a sample .dxp file? Link to comment Share on other sites More sharing options...
Katie Sikorski Posted December 1, 2022 Author Share Posted December 1, 2022 Product is Tibco Spotfire Analayst I have attached the DXP with the embeded layer and I want to color under WellStat just the following criteria:Active, Completed, Shutin, TA and Unknown = RedDuc, Drilling and Drilled = GreenPermitted = Blue The other statuses I don't want to show on this layer. I know I can filter this out but my engineer only wants to see the wells with these staus and if I filter he could reset the filters so if they are only colored the ones he wants to see I don't have to worry if he resets a filter. Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted December 2, 2022 Share Posted December 2, 2022 Hello again,I have attached a modified version of your analysis where I tested two possible solutions. Depending on your use case, maybe one of those could work for you: Using a binned (calculated) column, one bin per color, and simply change your coloring to use that column.Like you, I could not solve this using the existing column, using rules in the current plot - it appears it was not possible using a Feature Layer - but using a Marker Layer instead, it worked. Using that, you can use boolean expressions, such as [Axis.Color] in ("ACTIVE","COMPLETED","SHUT-IN", "TA", "UNKNOWN") for Red. Link to comment Share on other sites More sharing options...
Katie Sikorski Posted December 2, 2022 Author Share Posted December 2, 2022 Thanks so much this helped alot. Not sure which i like better but this will work. 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